Convert a date to days relative to the compact-binary date epoch.
Declared in <balber_berutil.h>
static
void
dateToDaysSinceEpoch(
bsls::Types::Int64* daysSinceEpoch,
bdlt::Date const& date);
Load to the specified daysSinceEpoch the number of days between the compact-binary date epoch and the specified date. The compact-binary date epoch is the date defined by the k_COMPACT_BINARY_DATE_EPOCH serial date. Note that this quantity may be negative if the specified date occurs before the compact-binary date epoch.
| Name | Description |
|---|---|
| daysSinceEpoch | destination for the day count relative to the epoch |
| date | date to convert |