BloombergLP::balber::BerUtil_DateImpUtil::daysSinceEpochToDate

Load to the specified date the date represented by the serial date indicated by adding the specified daysSinceEpoch to k_COMPACT_BINARY_DATE_EPOCH. Return 0 on success, and a non-zero value otherwise. This operation succeeds if the resulting value represents a date in the range [0001JAN01 .. 9999DEC31]. Note that daysSinceEpoch may be negative to indicate a serial date that occurs before k_COMPACT_BINARY_DATE_EPOCH.

Synopsis

Declared in <balber_berutil.h>

static
int
daysSinceEpochToDate(
    bdlt::Date* date,
    bsls::Types::Int64 daysSinceEpoch);