|
| BSLMF_NESTED_TRAIT_DECLARATION (LocalDatetime, bslma::UsesBslmaAllocator) |
|
| BSLMF_NESTED_TRAIT_DECLARATION (LocalDatetime, bslmf::IsBitwiseMoveable) |
|
| LocalDatetime () |
|
| LocalDatetime (const allocator_type &allocator) |
|
| LocalDatetime (const bdlt::DatetimeTz &datetimeTz, const bsl::string_view &timeZoneId, const allocator_type &allocator=allocator_type()) |
|
| LocalDatetime (const bdlt::DatetimeTz &datetimeTz, const char *timeZoneId, const allocator_type &allocator=allocator_type()) |
|
| LocalDatetime (const LocalDatetime &original, const allocator_type &allocator=allocator_type()) |
|
| LocalDatetime (bslmf::MovableRef< LocalDatetime > original) BSLS_KEYWORD_NOEXCEPT |
|
| LocalDatetime (bslmf::MovableRef< LocalDatetime > original, const allocator_type &allocator) |
|
| ~LocalDatetime () |
| Destroy this object.
|
|
LocalDatetime & | operator= (const LocalDatetime &rhs) |
|
LocalDatetime & | operator= (bslmf::MovableRef< LocalDatetime > rhs) |
|
void | setDatetimeTz (const bdlt::DatetimeTz &value) |
| Set the datetimeTz attribute of this object to the specified value .
|
|
void | setTimeZoneId (const bsl::string_view &value) |
|
void | setTimeZoneId (const char *value) |
|
template<class STREAM > |
STREAM & | bdexStreamIn (STREAM &stream, int version) |
|
void | swap (LocalDatetime &other) |
|
const bdlt::DatetimeTz & | datetimeTz () const |
|
const bsl::string & | timeZoneId () const |
|
bslma::Allocator * | allocator () const |
|
allocator_type | get_allocator () const |
|
template<class STREAM > |
STREAM & | bdexStreamOut (STREAM &stream, int version) const |
|
bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const |
|
This unconstrained (value-semantic) attribute class characterizes a date time, offset from UTC, and a time zone identifier represented by a string. See the Attributes section for information on the class attributes.
See baltzo_localdatetime
template<class STREAM >
STREAM & baltzo::LocalDatetime::bdexStreamIn |
( |
STREAM & |
stream, |
|
|
int |
version |
|
) |
| |
Assign to this object the value read from the specified input stream
using the specified version
format, and return a reference to stream
. If stream
is initially invalid, this operation has no effect. If version
is not supported, this object is unaltered and stream
is invalidated, but otherwise unmodified. If version
is supported but stream
becomes invalid during this operation, this object has an undefined, but valid, state. Note that no version is read from stream
. See the bslx
package-level documentation for more information on BDEX streaming of value-semantic types and containers.
template<class STREAM >
STREAM & baltzo::LocalDatetime::bdexStreamOut |
( |
STREAM & |
stream, |
|
|
int |
version |
|
) |
| const |
Write the value of this object, using the specified version
format, to the specified output stream
, and return a reference to stream
. If stream
is initially invalid, this operation has no effect. If version
is not supported, stream
is invalidated, but otherwise unmodified. Note that version
is not written to stream
. See the bslx
package-level documentation for more information on BDEX streaming of value-semantic types and containers.
bsl::ostream & baltzo::LocalDatetime::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0 , |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
Write the value of this object to the specified output stream
in a human-readable format, and return a reference providing modifiable access to stream
. Optionally specify an initial indentation level
, whose absolute value is incremented recursively for nested objects. If level
is specified, optionally specify spacesPerLevel
, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level
is negative, suppress indentation of the first line. If spacesPerLevel
is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level
). If stream
is not valid on entry, this operation has no effect. Note that the format is not fully specified, and can change without notice.