Create a LocalDatetime object with attribute values set from the specified datetimeTz and timeZoneId. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. If timeZoneId is passed as a null pointer, it is treated as an empty string.
Declared in <baltzo_localdatetime.h>
LocalDatetime(
bdlt::DatetimeTz const& datetimeTz,
std::string_view const& timeZoneId,
allocator_type const& allocator = allocator_type());
| Name | Description |
|---|---|
| datetimeTz | the datetime and UTC offset |
| timeZoneId | the time zone identifier |
| allocator | the allocator used to supply memory |