Get EPOCH using DATE function on linux

On November 23, 2009, in How-to, Scripting, by Cubert aka (Cube Dweller)

If you need epoch from a shell cmd line on a linux system the date cmd is a great way to do it.
date +%s -d "$a"
This code by will print epoch out at the cmd line in a ssh window or terminal window

Tagged with:
 

Leave a Reply