BloombergLP::baltzo::LocalDatetime::LocalDatetime

Constructors

Synopses

Declared in <baltzo_localdatetime.h>

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

LocalDatetime();
» more...

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

LocalDatetime(bslmf::MovableRef<LocalDatetime> original) noexcept;
» more...

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

explicit
LocalDatetime(allocator_type const& allocator);
» more...

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

LocalDatetime(
    bslmf::MovableRef<LocalDatetime> original,
    allocator_type const& allocator);
» more...

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

LocalDatetime(
    LocalDatetime const& original,
    allocator_type const& allocator = allocator_type());
» more...

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());
» more...

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());
» more...

Parameters

NameDescription
originalthe object to move from
allocatorthe allocator used to supply memory
datetimeTzthe datetime and UTC offset
timeZoneIdthe time zone identifier