Provide a namespace for current‐time retrieval procedures.
Synopsis
Declared in <bdlt_currenttime.h>
struct CurrentTime;
Description
This struct provides a namespace for current‐time‐retrieval procedures including a configurable global callback mechanism. The use of a subset of these procedures is thread‐safe (see Thread Safety).
Type Aliases
Name |
Description |
Callback function type that returns the current time as a time interval. |
Static Member Functions
Name |
Description |
Return the current local date/time with its UTC offset. |
|
Return the installed function used to retrieve the interval between |
|
Provide the default current‐time callback implementation. |
|
Return the current date/time in the local time zone. |
|
Return the current date/time as a time interval from the epoch. |
|
Set the callback used to retrieve the current time. |
|
Return the current date/time in Coordinated Universal Time (UTC). |
Created with MrDocs