BloombergLP::baltzo::TimeZoneUtil::now

Load the current local time into result.

Synopses

Declared in <baltzo_timezoneutil.h>

Load the current local time into result.

static
int
now(
    bdlt::DatetimeTz* result,
    char const* timeZoneId);
» more...

Load the current local time into result.

static
int
now(
    LocalDatetime* result,
    char const* timeZoneId);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultreceives the current local time
timeZoneIdidentifier of the time zone for the result