[Python-Dev] datetime +/- scalars (int, long, float)?
Kevin Jacobs
jacobs@penguin.theopalgroup.com
Mon, 4 Mar 2002 08:37:04 -0500 (EST)
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)?
-Kevin
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19 E-mail: jacobs@theopalgroup.com
Fax: (216) 986-0714 WWW: http://www.theopalgroup.com