A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/020614.html below:

[Python-Dev] datetime +/- scalars (int, long, float)?

[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





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