Gustavo Niemeyer <niemeyer at conectiva.com>: > We might even get some constants like: > > end_of_month = relativedelta(day=31) > > So that one might do "d+end_of_month". That reads like nonsense. When I find the end of a month, I am not "adding the end of the month" to the date. I'm becoming more and more convinced that this whole thing is an abuse of the '+' operator. By the way, can you subtract relativedeltas as well as add them? If '+' makes sense, '-' should make sense, too. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4