July 12th, 2005, 11:26 AM
how to turn mm-dd-yyyy into a timestamp?
What is the most elegant way to turn a value of mm-dd-yyyy into a timestamp? time.mktime() is stubborn about needing a 9 item tuple.
Would making a 9 time tuple from my value be the best way or is there a better way to go about it?
July 12th, 2005, 11:44 AM
Maybe something like this:
timestamp = time.mktime(time.strptime("07-12-2005", "%m-%d-%Y))
July 12th, 2005, 01:03 PM
Those people who think they know everything are a great annoyance to those of us who do.