Constructors

Synopses

Declared in <baltzo_localdatetime.h>

Create a LocalDatetime object having the (default) attribute values.

Create a LocalDatetime object having the same value and the same allocator as the specified original object.

Create a LocalDatetime object having default attribute values, using the specified allocator to supply memory.

explicit
LocalDatetime(allocator_type const& allocator);

Create a LocalDatetime object having the same value as the specified original object, using the specified allocator to supply memory.

Create a LocalDatetime object having the same value as the specified original object.

LocalDatetime(
    LocalDatetime const& original,
    allocator_type const& allocator = allocator_type());

Create a LocalDatetime object with attribute values set from the specified datetimeTz and timeZoneId.

LocalDatetime(
    bdlt::DatetimeTz const& datetimeTz,
    std::string_view const& timeZoneId,
    allocator_type const& allocator = allocator_type());

Create a LocalDatetime object with attribute values set from the specified datetimeTz and timeZoneId, using the specified allocator to supply memory.

LocalDatetime(
    bdlt::DatetimeTz const& datetimeTz,
    char const* timeZoneId,
    allocator_type const& allocator = allocator_type());

Parameters

Name

Description

original

the object to move from

allocator

the allocator used to supply memory

datetimeTz

the datetime and UTC offset

timeZoneId

the time zone identifier

Created with MrDocs