Report this

What is the reason for this report?

How to convert Unix timestamps to human readable date format in Bash?

Posted on November 25, 2020

I recently got asked how to convert Unix timestamps to human readable date format in Bash.

Here is an example of how to generate a Unix timestamp using the date command:

date +%s

This will output a long string of numbers like this:

1606319820

This number represents the seconds since 00:00:00 UTC on 1 January 1970.

So here’s how to convert Unix timestamps to human readable date format in Bash!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.