|
Boost : |
From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2006-02-27 10:41:40
On 2/26/06, Jeff Garland <jeff_at_[hidden]> wrote:
>
> //struct to represent elements of a point in time
> struct timepoint {
> year_type year; //32 bit unsigned integer -- range depends on
> calendar
> week_type month; //short integer 1-12 -- zero flags invalid
> short day_of_year; //short
> short day_of_week; //0-6 -- 0 == sunday
> short week_number; //1-53 - 0 indicates invalid
> short hours; //0-24
> short minutes; //0-59
> short seconds; //0-60 -- 60 is leap second
> frac_seconds_type fractional_seconds_count;
> short frac_seconds_resolution; //increments of 10 only
> };
So would "pow(10, frac_seconds_resolution )-1" be the maximum expected value
of fractional_seconds_count (excepting perhaps leap-microseconds or
something)? I think this could bear a little further explanation than just
"increments of 10 only". Given that it is a short I assume its not the
denominator itself, but the log10 of it.
-- Caleb Epstein caleb dot epstein at gmail dot com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk