Date/Time Conversion

Dennis Lee Bieber wlfraed at ix.netcom.com
Thu Nov 7 17:19:23 EST 2002


dapmco fed this fish to the penguins on Thursday 07 November 2002 10:46 
am:

> Im new to Python.. I have it installed on a win2k server. Im trying to
> figure out how to return the date if I enter a number corresponding to
> # of seconds since the Epoch
> 
> Anyone know of a good site with example code??
> 
        Read the help files...

import time

time.strftime("%x %X",time.localtime(19593874538.39473))


--  
 > ============================================================== <
 >   wlfraed at ix.netcom.com  | Wulfraed  Dennis Lee Bieber  KD6MOG <
 >      wulfraed at dm.net     |       Bestiaria Support Staff       <
 > ============================================================== <
 >        Bestiaria Home Page: http://www.beastie.dm.net/         <
 >            Home Page: http://www.dm.net/~wulfraed/             <



More information about the Python-list mailing list