[Tutor] string delimiters
Cameron Simpson
cs at zip.com.au
Thu Jun 4 02:45:21 CEST 2015
On 03Jun2015 14:16, Alex Kleider <akleider at 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 <cs at 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 <diamond at jit.dec.com>
More information about the Tutor
mailing list