A timestamps, also known as Unix epoch, is the number of seconds since 1-1-1970. The C language provides for translating timestamps to and from human readable formats. I had found no utility for doing the same from the command line, when I coded the short program below.
The compile command at the top comment assumes you save it as time_t.c
and put the executable in your bin
directory.
update: Found out date
can do it as well:
~$ date +%s 1539708369 ~$ date --date=@1539708369 Tue Oct 16 18:46:09 CEST 2018
Copy and paste the script to your editor of choice. There is a Javascript for that. Otherwise, you may just download it.
Copyright (C) 2016 Alessandro Vesely, all rights reserved except as noted. — JavaScript license information