Load the current local time into result.
Declared in <baltzo_timezoneutil.h>
static
int
now(
bdlt::DatetimeTz* result,
char const* timeZoneId);
Load, into the specified result, the current local time value in the time zone indicated by the specified timeZoneId. Return 0 on success, and a non-zero value with no effect otherwise. A return value of ErrorCode::k_UNSUPPORTED_ID indicates that timeZoneId is not recognized.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| result | receives the current local time |
| timeZoneId | identifier of the time zone for the result |