[sf-lug] unix time conversion

Alex Kleider a_kleider at yahoo.com
Mon Oct 27 16:02:52 PDT 2008


sorry, I should have written:

>>> string = "July 3, 1945"
>>> import time
>>> unix_time = time(string)
>>> print unix_time

> Got it!
> 
> Now that you have wetted my appetite:
> How to change a human readable time into 'unix
> time?'
> (preferably using python so this becomes applicable to the
> ThinkPython grp)
> 
> >>> string = "July 3, 1945"
> >>> import time
> >>> time(string)
> 
> the above doesn't work but is it just because the
> format of the date is incorrect or is there a bigger
> problem?
> 
> 


      




More information about the sf-lug mailing list