TooMuchPainTheseDays's blog

By TooMuchPainTheseDays, history, 2 years ago, In English

I want to extract date and time of submission from creationTimeSeconds (from user status API) , so can you please guide me for the same.
Example : creationTimeSeconds: 1650552092 then what is the date and time to corresponding creationTimeSeconds
Thank you.

»
12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

You can achieve it in Python like this:

from datetime import datetime

datetime.fromtimestamp(1650552092).strftime("%A, %B %d, %Y %I:%M:%S")