BloombergLP::bdlt::Time::addTime

Add the specified signed time fields; return midnight-boundary crossings.

Synopsis

Declared in <bdlt_time.h>

int
addTime(
    int hours,
    int minutes = 0,
    int seconds = 0,
    int milliseconds = 0,
    bsls::Types::Int64 microseconds = 0);

Description

Add to the value of this time object the specified (signed) number of hours, and the optionally specified (signed) numbers of minutes, seconds, milliseconds, and microseconds; return the (signed) number of times that the 23:59:59.999999 - 00:00:00.000000 boundary was crossed in performing the operation. Unspecified arguments default to 0.

Return Value

the (signed) number of midnight-boundary crossings

Parameters

NameDescription
hourssigned number of hours to add
minutessigned number of minutes to add (default 0)
secondssigned number of seconds to add (default 0)
millisecondssigned number of milliseconds to add (default 0)
microsecondssigned number of microseconds to add (default 0)