Probably Walter u. Christel Pachl typed into a real computer:
ANSI standard has TIME('o') giving the number of seconds east of GMT.
If your Rexx doesn't have that then it's down to operating system hacks,
I should think. On Unix (Linux and Solaris at least) you can say
"date -u" to get the date in UTC, so you can probably find out
by comparing that to the date in your local timezone.
GNU date also has "date +%s" to give the result as a Unix timestamp.
It also has this:
$ date -d '29 Jul 2003 23:48 BST' +%s
which is what you wanted in the first place. However, beware of
daylight savings time: if you are trying to convert a date in the
past then the offset from GMT may not be the same as it is today. The
GNU date command above will take daylight savings time into account if
you leave off the timezone in the input date. It then uses the info from
your TZ environment variable, or the system default:
$ date -d '29 Jul 2003 23:48' +%s
$ TZ=GB date -d '29 Jul 2003 23:48' +%s
$ TZ=UTC date -d '29 Jul 2003 23:48' +%s
$ TZ=US/Eastern date -d '29 Jul 2003 23:48' +%s
---- Ian Collier : XXXX@XXXXX.COM : WWW page (including REXX section):
New to this group? Answers to frequently-asked questions can be had from