8#ifndef INCLUDED_BDLT_INTERVALCONVERSIONUTIL
9#define INCLUDED_BDLT_INTERVALCONVERSIONUTIL
102#include <bdlscm_version.h>
113#include <bsl_climits.h>
133 static const Int64 k_INT_MAX = INT_MAX;
134 static const Int64 k_INT_MIN = INT_MIN;
135 static const Int64 k_DATETIME_INTERVAL_SECONDS_MAX =
137 static const Int64 k_DATETIME_INTERVAL_SECONDS_MIN =
139 static const Int64 k_DATETIME_INTERVAL_NSEC_REMAINDER_MAX =
142 static const Int64 k_DATETIME_INTERVAL_NSEC_REMAINDER_MIN =
143 -k_DATETIME_INTERVAL_NSEC_REMAINDER_MAX;
186 || (k_DATETIME_INTERVAL_SECONDS_MIN == interval.
seconds()
187 && k_DATETIME_INTERVAL_NSEC_REMAINDER_MIN <=
191 || (interval.
seconds() == k_DATETIME_INTERVAL_SECONDS_MAX
193 k_DATETIME_INTERVAL_NSEC_REMAINDER_MAX));
Definition bdlt_datetimeinterval.h:201
int milliseconds() const
Definition bdlt_datetimeinterval.h:1137
bsls::Types::Int64 totalSeconds() const
Definition bdlt_datetimeinterval.h:1170
int microseconds() const
Definition bdlt_datetimeinterval.h:1144
Definition bsls_timeinterval.h:301
BSLS_KEYWORD_CONSTEXPR int nanoseconds() const
Definition bsls_timeinterval.h:1348
BSLS_KEYWORD_CONSTEXPR bsls::Types::Int64 totalSeconds() const
Definition bsls_timeinterval.h:1378
BSLS_KEYWORD_CONSTEXPR bsls::Types::Int64 seconds() const
Definition bsls_timeinterval.h:1354
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bbldc_basicisma30360.h:112
Definition bdlt_intervalconversionutil.h:125
static DatetimeInterval convertToDatetimeInterval(const bsls::TimeInterval &interval)
Definition bdlt_intervalconversionutil.h:179
static bsls::TimeInterval convertToTimeInterval(const DatetimeInterval &interval)
Definition bdlt_intervalconversionutil.h:210
Definition bdlt_timeunitratio.h:199
static const bsls::Types::Int64 k_SECONDS_PER_DAY
Definition bdlt_timeunitratio.h:256
static const int k_NANOSECONDS_PER_MILLISECOND_32
Definition bdlt_timeunitratio.h:298
static const bsls::Types::Int64 k_NANOSECONDS_PER_MICROSECOND
Definition bdlt_timeunitratio.h:205
static const int k_NANOSECONDS_PER_MICROSECOND_32
Definition bdlt_timeunitratio.h:296
static const bsls::Types::Int64 k_MICROSECONDS_PER_SECOND
Definition bdlt_timeunitratio.h:230
long long Int64
Definition bsls_types.h:132