[#BloombergLP-balber-BerUtil_DateImpUtil-daysSinceEpochToDate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_DateImpUtil.adoc[BerUtil&lowbar;DateImpUtil]::daysSinceEpochToDate
:relfileprefix: ../../../
:mrdocs:

Load to the specified `date` the date represented by the serial date indicated by adding the specified `daysSinceEpoch` to `k&lowbar;COMPACT&lowbar;BINARY&lowbar;DATE&lowbar;EPOCH`&period;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
daysSinceEpochToDate(
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]* date,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] daysSinceEpoch);
----

== Description

Return 0 on success, and a non&hyphen;zero value otherwise&period; This operation succeeds if the resulting value represents a date in the range `&lsqb;0001JAN01 &period;&period; 9999DEC31&rsqb;`&period; Note that `daysSinceEpoch` may be negative to indicate a serial date that occurs before `k&lowbar;COMPACT&lowbar;BINARY&lowbar;DATE&lowbar;EPOCH`&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *date*
| destination for the converted date
| *daysSinceEpoch*
| days relative to the compact&hyphen;binary date epoch
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
