function to convert Unix timestamp in bulk in Python

Viewed 1022

Does anyone know how can I convert unix timestamp to readable dates in Python? I've been using this:

print(
datetime.datetime.fromtimestamp(
    int("1284101485")
).strftime('%Y-%m-%d %H:%M:%S')
)

but it gets taxing when I have to convert many.

Appreciate the help.

3 Answers
Related