How to convert unix timestamp to human readable on command line

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the bash category.

Last Updated: 2024-11-21

I saw the last modified time for a file on an SFTP server was "1601016345". When was this time in real life?

Here's how to find out:

 date  -r 1601016345

Fri Sep 25 08:45:45 CEST 2020