On 03Jun2015 14:16, Alex Kleider <aklei...@sonic.net> wrote:
On 2015-06-03 12:53, Alan Gauld wrote:
...
If this is really about parsing dates and times have
you looked at the datetime module and its parsing/formatting
functions (ie strptime/strftime)?

I asssume strftime gets its name from 'string from time.'
What about strptime? How did that get its name?

No, they both come from the standard C library functions of the same names, being "(f)ormat a time as a string" and "(p)arse a time from a string". The shape of the name is because they're "str"ing related functions, hence the prefix.

See "man 3 strptime" and "man 3 strftime".

Cheers,
Cameron Simpson <c...@zip.com.au>

A program in conformance will not tend to stay in conformance, because even if
it doesn't change, the standard will.   - Norman Diamond <diam...@jit.dec.com>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to