how to change the time string into number?

Chris Angelico rosuav at gmail.com
Wed Aug 13 21:55:18 EDT 2014


On Thu, Aug 14, 2014 at 11:46 AM, luofeiyu <elearn2014 at gmail.com> wrote:
> s="Aug"
>
> how can i change it into 8 with some python time module?

Is this homework? If not, let me set you some homework.

Step 1: Read the docs for some Python time module.
Step 2: See if it lets you do what you want.
Step 3: Return to step 1 with a different module, until your problem is solved.

ChrisA



More information about the Python-list mailing list