Extended date and time

Jeremy Sanders jeremy+complangpython at jeremysanders.net
Sat Nov 10 10:37:20 EST 2007


Hi - I need to add support to a program for dates and times. The built-in
Python library seems to be okay for many purposes, but what I would like
would be Unix epoch style times (seconds relative to some date), covering a
large period from the past to the future. What would be nice would be a
library which can take floating point seconds from an epoch.

Does anyone know of a library which can convert from human style dates and
times to a floating point epoch and back again? I expect I could fudge the
fractional seconds with the built-in library, but I can't see how to get
dates in the past.

Thanks, Jeremy.

-- 
Jeremy Sanders
http://www.jeremysanders.net/



More information about the Python-list mailing list