Answers for "python convert unix timestamp to local time"

1

convert integer unix to timestamp python

import datetime
print(
    datetime.datetime.fromtimestamp(
        int("1284105682")
    ).strftime('%Y-%m-%d %H:%M:%S')
)
Posted by: Guest on November-16-2020

Code answers related to "python convert unix timestamp to local time"

Python Answers by Framework

Browse Popular Code Answers by Language