> The old mx.datetime module (on which Python's datetime module is based, I > presume) had a strptime() function which would basically do the reverse (you > specify a format string and it would attempt to parse the date string you give > it). Unfortunately, Python's datetime module doesn't have such a function. > This is the best way I have found of doing it:
Fortunately, the time module does. time.strptime HTH, Jacob _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor