
11 Jan
2005
11 Jan
'05
1:26 p.m.
I'd like to determine the total number of seconds between a date and the epoch ('00:00:00 1970-01-01 UTC'), The date can be in a timezone that has daylight savings. The date should be converted to UTC, with appropriate daylight savings adjustments made, and then the epoch subtracted from it. This should mirror the unix GNU 'date' utility, which can be run as: % TZ="America/New_York" date --date='2004-10-04 12:14:32' +%s 1096906472 I've looked at the doc, but it's not clear how to do this. Could someone give me a few pointers, please? Thanks. Bill