Created
June 8, 2019 12:55
-
-
Save ezirmusitua/b9f504a54c90edd88629aa6191b532da to your computer and use it in GitHub Desktop.
[Convert seconds to date time string] #python #time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def seconds_to_datetime_str(seconds: str, format: str = '%Y-%m-%d'): | |
return time.strftime(format, time.gmtime(seconds)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment