Feb-17-2021, 09:49 PM
(This post was last modified: Feb-17-2021, 09:49 PM by BashBedlam.)
datetime
is both the module name and the class name. If you import the module with:import datetimethen you would have to use the class like this:
file_date = datetime.datetime.fromtimestamp (file_time)if you import like this:
from datetime import datetimeThen you don't need to use
datetime.datetime
but only the class name, like this:file_date = datetime.fromtimestamp (file_time)