Python does not let me format time.

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Thu Apr 27 21:14:46 EDT 2000


Sindh wrote in comp.lang.python:
> If there is already a moduls to do the same , much helpful.

>>> import time
>>> time.strptime("00/04/28","%y/%m/%d")
(2000,04,17,0,0,0,6,1,0)

strptime is the inverse of strftime, in a way.

-- 
Remco Gerlich,  scarblac at pino.selwerd.nl

   This is no way to be
     Man ought to be free      -- Ted Bundy
       That man should be me



More information about the Python-list mailing list