Is there no inversion of gmtime()?

Martin P Holland newsbunny at noether.freeserve.co.uk
Wed Jun 21 05:07:44 EDT 2000


On 21 Jun 2000 01:10:50 GMT,
Dparsavand <dparsavand at aol.com> wrote:
>Looking throught the time module, I'm surprised that there doesn't seem
>to be a
>way to go from the known date in UTC to the number of seconds since the epoch.
 
There was a thread about this in this newsgroup around 05/03/1999 and
G. van Rossum posted a readable solution (which does what you'd expect)
which I use in my ftpupdater app
http://www.noether.freeserve.co.uk/kftpupdater/
 
IIRC there were also a faster (but less readable) solution posted by
the F-bot. Either check out deja (does it go back that far?) or snarf
Guido's solution from my app.
 
atb
 
Martin             

-- 
http://www.noether.freeserve.co.uk
http://www.kppp-archive.freeserve.co.uk



More information about the Python-list mailing list