Creating time stamps

Grant Edwards grant.b.edwards at gmail.com
Mon Jul 22 17:41:32 EDT 2019


On 2019-07-22, Michael F. Stemper <michael.stemper at gmail.com> wrote:

>>>   from datetime import datetime
>>>   from time import strftime
>>>   timestamp = datetime.now().strftime( "%Y-%m-%d %H:%M" )
[...]
> Apparently, the strftime() in that last line is not the one that I
> explicitly imported, but a method of datetime.now(). Did I get that
> right?

Exactly.

-- 
Grant Edwards               grant.b.edwards        Yow! TONY RANDALL!  Is YOUR
                                  at               life a PATIO of FUN??
                              gmail.com            




More information about the Python-list mailing list