[Dev] blog post on why date math is *fun* (unless your a
PHP coder)
Phillip J. Eby
pje at telecommunity.com
Thu Nov 3 10:39:31 PST 2005
At 01:27 AM 11/3/2005 -0500, Mike Taylor wrote:
>Just thought I would share the blog post with other devs - something to
>always keep in the back of your brain when manipulating dates :)
>
>http://www.alexking.org/blog/2005/11/02/nasty-php-oddity/
FWIW, in Python you should use a timedelta(days=whatever) to move by
days. That's why timedelta keeps the days separate from the seconds and
such. (That is, because there are days that aren't 86400 seconds long.)
More information about the Dev
mailing list