Unix Epoch

Unix Epoch Unix Epoch

Unix Epoch is the system for describing time in Unix and Unix like systems. It starts on 00:00:00 January 1st; 1970.

Unix time is the number of seconds that have elapsed since the start of the Unix Epoch. This Unix Epoch time is an ever-incrementing counter which goes up every second and shows the number of seconds elapsed since 00:00:00 UTC on January 1, 1970. Such large numbers are pretty useless in their raw form for the tasks of confirming current time and date, but they’re perfect for measuring between two points in time – it’s easier and quicker to find difference between two Unix timestamps that calculate the same between two human-readable timestamps.

Times and dates you see and work with on your Linux desktop or server are all derived from Unix time: your operating system confirms the Unix Time first and then uses standard library procedures to convert it into commonly used formats we can actually read.

How To Find Out Unix Time

You can get current Unix time using the date command:

$ date +%s

Without any parameters, date command will show you a more readable current tkme:

$ date
Sat Jan 12 16:41:43 UTC 2019

If you are sporting the recent bash 5.0 release, you don’t even need the date command: just use the EPOCHSECONDS variable like this:


See Also

  • Converting date and time to Unix Epoch in Perl
  • Print and set date/time with date command
  • Unix commands
  • Unix Shell Scripting
  • Epoch Time

Keep Learning with Me

Follow me on Facebook and Twitter or jump into Telegram chat!:
I'm using Brave browser
Give it a try, it's awesome: Brave Browser
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!

Recent Tweets