Constructors

Synopses

Declared in <bdlt_datetimeinterval.h>

Create a time interval object having the value 0.

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

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);

Parameters

Name

Description

original

time interval to copy

days

day count

hours

hour count (optional)

minutes

minute count (optional)

seconds

second count (optional)

milliseconds

millisecond count (optional)

microseconds

microsecond count (optional)

Created with MrDocs