Bash date utils

(still a work in progress)


The following is a couple of bash scripts that I wrote for working with dates.

"sec2date.sh" will convert an epoch timestamp (number of seconds since Jan 1, 1970 UTC), back into a regular date format.

It allows for a few options: users can specify the number of seconds to offset the date from UTC / GMT, can also override the default output format using anything that the GNU date utility supports, and should the GNU version of date not be the default on your system then you can specify where to find it.

The other script is called isDST.sh and checks to see if a given date is in daylight savings time, or standard time.

It makes use of sec2date.sh to convert the date to a format that it expects.

Both scripts are licensed under the GNU Lesser GPL v2.1 (LGPL) to make them less restrictive on how you use them from your own scripts.

These scripts will be avilable for download soon.