[nylug-talk] Python time zones

Peter C. Norton spacey-nylug at lenin.net
Wed Mar 5 17:49:04 EST 2008


On Wed, Mar 05, 2008 at 05:29:51PM -0500, H. G. wrote:
> Is it too naive to convert to the Unix Epoch time, do the arithmetic, then
> convert back?

Depending on the situation, this can be the wrong thing. A unix
timestamp/epoch time does run out. So if you want to calculate a
30-year mortgage in 2009 on a 32-bit system, you definetely want
something that will make sure that time_t won't wrap in 2038.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



More information about the nylug-talk mailing list