BloombergLP::bdlt::DatetimeInterval::DatetimeInterval

Constructors

Synopses

Declared in <bdlt_datetimeinterval.h>

Create a time interval object having the value 0.

DatetimeInterval();
» more...

Create a time interval object having the value of the specified original time interval.

DatetimeInterval(DatetimeInterval const& original);
» more...

Create a time interval from the specified field values.

explicit
DatetimeInterval(
    int days,
    bsls::Types::Int64 hours = 0,
    bsls::Types::Int64 minutes = 0,
    bsls::Types::Int64 seconds = 0,
    bsls::Types::Int64 milliseconds = 0,
    bsls::Types::Int64 microseconds = 0);
» more...

Parameters

NameDescription
originaltime interval to copy
daysday count
hourshour count (optional)
minutesminute count (optional)
secondssecond count (optional)
millisecondsmillisecond count (optional)
microsecondsmicrosecond count (optional)