Convert a Unix timestamp (seconds since 1970-01-01 UTC) into a formatted 'YYYY-MM-DD HH:MM:SS' string in UTC.
Constraints
Example
>>> unix_to_datetime(0) '1970-01-01 00:00:00' >>> unix_to_datetime(1609459200) '2021-01-01 00:00:00' >>> unix_to_datetime(1234567890) '2009-02-13 23:31:30'
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints