how to change the time string into number?

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Aug 14 04:35:17 EDT 2014


On 14/08/2014 02:46, luofeiyu wrote:
> s="Aug"
>
> how can i change it into 8 with some python time module?

If all else fails, read the instructions, so start here 
https://docs.python.org/3/library/datetime.html#module-datetime

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list