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
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
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";
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