Created
November 11, 2024 15:29
-
-
Save charlesrc019/9bc81963ca07abec0999022524b5650f to your computer and use it in GitHub Desktop.
math_convert_epoch_to_datestamp.py
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
import datetime | |
def epoch_to_dattim(epoch_time, fmt='%Y%m%d%H%M%S'): | |
return int(datetime.datetime.utcfromtimestamp(int(epoch_time)).strftime(fmt)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment