Load to the specified date the date represented by the serial date indicated by adding the specified daysSinceEpoch to k_COMPACT_BINARY_DATE_EPOCH.

Synopsis

Declared in <balber_berutil.h>

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

Description

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.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

date

destination for the converted date

daysSinceEpoch

days relative to the compact‐binary date epoch

Created with MrDocs