time, calendar, datetime, etc
skip at pobox.com
Wed Jul 30 21:22:29 CEST 2003
kylotan> Is there any chance of these modules becoming somewhat combined
kylotan> in the future?
Maybe. Perhaps you would like to write a PEP?
kylotan> Right now it seems a little awkward to find the function you
kylotan> want. The main culprit is 'timegm' which is the only thing I
kylotan> need from the calendar module but which should probably be in
kylotan> the time module.
I've never used it, but it looks like you're right. It's the GMT/UTC
equivalent of time.mktime(), right?
kylotan> PS. I use 'time.strptime(myTime, '%a %b %d %H:%M:%S %Y')' as a
kylotan> reverse-asctime(), and was surprised that I couldn't find this
kylotan> wrapped in a function in any of the modules. Maybe such a
kylotan> function would be considered for future addition?
Seems simple enough to not be needed. What makes asctime() all that
More information about the Python-list