[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Need to convert standard time to epoch in bash
- Subject: [ale] Need to convert standard time to epoch in bash
- From: ozone at webgroup.org (David Tomaschik)
- Date: Tue, 17 Apr 2007 11:10:28 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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