Represents a span of time between two datetimes. This is not fully supported yet throughout the library.
More...
#include <timedelta.hpp>
|
| timedelta () |
| Constructs a timedelta equal to zero. More...
|
|
| timedelta (int days_, int hours_, int minutes_, int seconds_, int microseconds_) |
| Constructs a timedelta from a number of days, hours, minutes, seconds, and microseconds. More...
|
|
double | to_number () const |
| Returns a numeric representation of this timedelta as a fractional number of days. More...
|
|
Represents a span of time between two datetimes. This is not fully supported yet throughout the library.
◆ timedelta() [1/2]
xlnt::timedelta::timedelta |
( |
| ) |
|
Constructs a timedelta equal to zero.
◆ timedelta() [2/2]
xlnt::timedelta::timedelta |
( |
int |
days_, |
|
|
int |
hours_, |
|
|
int |
minutes_, |
|
|
int |
seconds_, |
|
|
int |
microseconds_ |
|
) |
| |
Constructs a timedelta from a number of days, hours, minutes, seconds, and microseconds.
◆ from_number()
static timedelta xlnt::timedelta::from_number |
( |
double |
number | ) |
|
|
static |
Returns a timedelta from a number representing the factional number of days elapsed.
◆ to_number()
double xlnt::timedelta::to_number |
( |
| ) |
const |
Returns a numeric representation of this timedelta as a fractional number of days.
◆ days
int xlnt::timedelta::days |
◆ hours
int xlnt::timedelta::hours |
◆ microseconds
int xlnt::timedelta::microseconds |
◆ minutes
int xlnt::timedelta::minutes |
◆ seconds
int xlnt::timedelta::seconds |
The documentation for this struct was generated from the following file: