[ale] Need to convert standard time to epoch in bash

David Tomaschik ozone at webgroup.org
Tue Apr 17 11:10:28 EDT 2007


This requires GNU date, but is fairly simple:
date '+%s'

Ned Williams wrote:
> Greeting ale friends,
> 
> I need to add function to a script with*out* using perl to convert standard
> time to UNIX Epoch time...anyone have code to do this?
> 
> I can find plenty of examples as well as the date command intself to
> convert
> epoch to time but not the other way around
> 
> help,
> Ned
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale




More information about the Ale mailing list