Re: Converting date to milliseconds since 1-1-70

2006-01-26 Thread Xavier Morel
NateM wrote: Thank you! If I am reading in dates as strings from a text file, like 5/11/1998, how do I convert that to a format I can pass into mktime? Thanks again. Check time.strptime() -- http://mail.python.org/mailman/listinfo/python-list

Converting date to milliseconds since 1-1-70

2006-01-24 Thread NateM
How do I convert any given date into a milliseconds value that represents the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT? Is there an easy way to do this like Date in java? Thanks, Nate -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting date to milliseconds since 1-1-70

2006-01-24 Thread gry
NateM wrote: How do I convert any given date into a milliseconds value that represents the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT? Is there an easy way to do this like Date in java? Thanks, Nate The main module for dates and times is datetime; so

Re: Converting date to milliseconds since 1-1-70

2006-01-24 Thread NateM
Thank you! If I am reading in dates as strings from a text file, like 5/11/1998, how do I convert that to a format I can pass into mktime? Thanks again. -- http://mail.python.org/mailman/listinfo/python-list