8#ifndef INCLUDED_BDLT_DATETZ
9#define INCLUDED_BDLT_DATETZ
137#include <bdlscm_version.h>
148#include <bsl_iosfwd.h>
166 enum ValidOffsetRange {
265 template <
class STREAM>
305 template <
class STREAM>
321 bsl::ostream&
print(bsl::ostream& stream,
323 int spacesPerLevel = 4)
const;
325#ifndef BDE_OPENSOURCE_PUBLICATION
392template <
class HASHALG>
407 return k_MIN_OFFSET <
offset
427: d_localDate(localDate)
435: d_localDate(original.d_localDate)
436, d_offset(original.d_offset)
450 d_localDate = rhs.d_localDate;
451 d_offset = rhs.d_offset;
477template <
class STREAM>
528template <
class STREAM>
535 stream.putInt32(d_offset);
545#ifndef BDE_OPENSOURCE_PUBLICATION
577 return lhs.offset() == rhs.offset()
578 && lhs.localDate() == rhs.localDate();
584 return lhs.offset() !=
rhs.offset()
585 ||
lhs.localDate() !=
rhs.localDate();
591 return rhs.print(stream, 0, -1);
595template <
class HASHALG>
599 using ::BloombergLP::bslh::hashAppend;
Definition bdlt_datetz.h:161
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlt_datetz.h:478
static bool isValid(const Date &localDate, int offset)
Definition bdlt_datetz.h:405
int validateAndSetDateTz(const Date &localDate, int offset)
Definition bdlt_datetz.h:560
int offset() const
Definition bdlt_datetz.h:513
int setDateTzIfValid(const Date &localDate, int offset)
Definition bdlt_datetz.h:466
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlt_datetz.h:529
DateTz()
Create a DateTz object having the (default) attribute values.
Definition bdlt_datetz.h:419
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
DateTz & operator=(const DateTz &rhs)
Definition bdlt_datetz.h:448
Date localDate() const
Definition bdlt_datetz.h:507
Datetime gmtStartTime() const
Definition bdlt_datetz.h:548
void setDateTz(const Date &localDate, int offset)
Definition bdlt_datetz.h:457
~DateTz()
Destroy this object.
Definition bdlt_datetz.h:441
static int maxSupportedBdexVersion()
Definition bdlt_datetz.h:554
Datetime utcStartTime() const
Definition bdlt_datetz.h:519
Definition bdlt_date.h:294
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlt_date.h:1013
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlt_date.h:924
Definition bdlt_datetime.h:330
Datetime & addMinutes(bsls::Types::Int64 minutes)
Definition bdlt_datetime.h:2062
Definition bdlt_time.h:195
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
#define BSLS_REVIEW(X)
Definition bsls_review.h:1019
void hashAppend(HASH_ALGORITHM &hashAlgorithm, const BigEndianInt16 &object)
Definition bbldc_basicisma30360.h:112
bool operator==(const Calendar &lhs, const Calendar &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Calendar &calendar)
void hashAppend(HASHALG &hashAlg, const Calendar &object)
bool operator!=(const Calendar &lhs, const Calendar &rhs)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Definition bdlbb_blob.h:579