help? strptime ....
scott cotton
scott at chronis.pobox.com
Tue Jun 22 23:09:51 EDT 1999
>>> import time
>>> print time.strptime.__doc__
strptime(string, format) -> tuple
Parse a string to a time tuple according to a format specification.
See the library reference manual for formatting codes (same as strftime()).
>>>
>>>
>>> time.strptime("19990822", "%Y%m%d")
(1999, 8, 22, 0, 0, 0, 6, 1, 0)
>>> time.mktime(time.strptime("19990822", "%Y%m%d"))
935294400.0
scott
On Wed, Jun 23, 1999 at 02:33:56AM +0000, Benjamin Schollnick wrote:
| Folks,
|
| I'm trying to use strptime (from the time module) and can't....
|
| Could someone please post a example, so that I can try to figure out
| what
| I'm doing wrong?
|
| - Benjamin
|
| --
| http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list