BDE 4.14.0 Production release
|
Provide constants useful for encoding datetimes.
This component implements a utility struct
, bdlt::DatetimeImpUtil
, that defines a namespace for obtaining constants and bdlt::Datetime *
to constant values that are useful to encoding datetimes at static-initilaization time. The assumptions for this encoding are that a collection of unset values, one per day over the valid range of bdlt::Date
, are encoded in the lowest values, and then microsecond resolution over the entire bdlt::Date
range.
This section illustrates intended use of this component.
To obtain the bdlt::Datetime
internal value for 0001/01/01 at static-initialization time: