Boost logo

Boost Users :

From: Bill Lear (rael_at_[hidden])
Date: 2005-01-11 08:26:20


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net