Return a reference to the Unix epoch (1970‐01‐01 00:00:00).

Synopsis

Declared in <bdlt_epochutil.h>

static
Datetime const&
epoch();

Description

Return a reference providing non‐modifiable access to the epoch time: midnight on January 1, 1970. Note that this value exists before any code is executed and will continue to exist, unchanged, until the program exits.

Return Value

non‐modifiable reference to the epoch datetime

Created with MrDocs