Kevin Jacobs <jacobs@penguin.theopalgroup.com> writes: > On Mon, 4 Mar 2002, Guido van Rossum wrote: > > > You should name the type timestamp if you want to imply dt + n > > > == dt + n seconds. datetime + n is commonly understood as > > > dt + n *days*. > [...] > > Is this just an mxDateTime convention, or is it in wider use? (URLs > > of docs of other languages / libraries would really help to convince > > me!) > > I'm afraid that this really is the de-facto standard. However, lets be > clear; is t=t+1 adding 1 (calendar) day or 24 hours (86400 seconds)? Wouldn't this fall into the "explicit is better than implicit" bin? I.e. t + 1 should be an error? Cheers, M. -- US elections For those of you fearing that the rest of the world might be making fun of the US because of this: Rest assured, we are. -- http://www.advogato.org/person/jameson/diary.html?start=12
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