8#ifndef INCLUDED_BDLT_DATETZ
9#define INCLUDED_BDLT_DATETZ
137#include <bdlscm_version.h>
149#include <bsl_iosfwd.h>
168 enum ValidOffsetRange {
260 template <
class STREAM>
295 template <
class STREAM>
310 bsl::ostream&
print(bsl::ostream& stream,
312 int spacesPerLevel = 4)
const;
314#ifndef BDE_OPENSOURCE_PUBLICATION
375template <
class HASHALG>
390 return k_MIN_OFFSET <
offset
412: d_localDate(localDate)
420: d_localDate(original.d_localDate)
421, d_offset(original.d_offset)
435 d_localDate = rhs.d_localDate;
436 d_offset = rhs.d_offset;
462template <
class STREAM>
513template <
class STREAM>
520 stream.putInt32(d_offset);
530#ifndef BDE_OPENSOURCE_PUBLICATION
562 return lhs.offset() == rhs.offset()
563 && lhs.localDate() == rhs.localDate();
569 return lhs.offset() != rhs.offset()
570 || lhs.localDate() != rhs.localDate();
576 return rhs.print(stream, 0, -1);
580template <
class HASHALG>
584 using ::BloombergLP::bslh::hashAppend;
Definition bdlt_datetz.h:162
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlt_datetz.h:463
static bool isValid(const Date &localDate, int offset)
Definition bdlt_datetz.h:388
int validateAndSetDateTz(const Date &localDate, int offset)
Definition bdlt_datetz.h:545
int offset() const
Definition bdlt_datetz.h:498
int setDateTzIfValid(const Date &localDate, int offset)
Definition bdlt_datetz.h:451
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlt_datetz.h:514
DateTz()
Create a DateTz object having the (default) attribute values.
Definition bdlt_datetz.h:404
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
DateTz & operator=(const DateTz &rhs)
Definition bdlt_datetz.h:433
Date localDate() const
Definition bdlt_datetz.h:492
Datetime gmtStartTime() const
Definition bdlt_datetz.h:533
void setDateTz(const Date &localDate, int offset)
Definition bdlt_datetz.h:442
~DateTz()
Destroy this object.
Definition bdlt_datetz.h:426
static int maxSupportedBdexVersion()
Definition bdlt_datetz.h:539
Datetime utcStartTime() const
Definition bdlt_datetz.h:504
Definition bdlt_date.h:294
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlt_date.h:985
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlt_date.h:896
Definition bdlt_datetime.h:331
Datetime & addMinutes(bsls::Types::Int64 minutes)
Definition bdlt_datetime.h:1992
Definition bdlt_time.h:196
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_REVIEW(X)
Definition bsls_review.h:949
void hashAppend(HASH_ALGORITHM &hashAlg, const baljsn::EncoderTestAddress &object)
Definition baljsn_encoder_testtypes.h:9236
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)
Definition bdlbb_blob.h:576