Boost logo

Boost :

From: Jeremy Maitin-Shepard (jbms_at_[hidden])
Date: 2004-02-11 10:15:55


It seems it might be more useful if the interface of the date-time
library were changed to either use a single precision (milliseconds or
microseconds) or allow the precision to be specified by the user as a
template parameter (i.e. the user could specify seconds, milliseconds,
microseconds, or nanoseconds). The actual precision of the current time
clock would of course depend on the platform-specific facilities
available for accessing the system time. Then the primary
representation of a time duration would be the total number of
seconds/milliseconds/microseconds/nanoseconds and the primary
representation of a time point could be a time duration since a fixed
epoch in a fixed time zone, i.e. 1970-01-01 00:00:00.0000 UTC. This
would allow convenient separation of the calendar handling from the
time representation, and the time representation could be used without
the calendar handling.

-- 
Jeremy Maitin-Shepard

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk