xlnt
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
xlnt::timedelta Struct Reference

Represents a span of time between two datetimes. This is not fully supported yet throughout the library. More...

#include <timedelta.hpp>

Public Member Functions

 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...
 

Static Public Member Functions

static timedelta from_number (double number)
 Returns a timedelta from a number representing the factional number of days elapsed. More...
 

Public Attributes

int days
 The days More...
 
int hours
 The hours More...
 
int minutes
 The minutes More...
 
int seconds
 The seconds More...
 
int microseconds
 The microseconds More...
 

Detailed Description

Represents a span of time between two datetimes. This is not fully supported yet throughout the library.

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ days

int xlnt::timedelta::days

The days

◆ hours

int xlnt::timedelta::hours

The hours

◆ microseconds

int xlnt::timedelta::microseconds

The microseconds

◆ minutes

int xlnt::timedelta::minutes

The minutes

◆ seconds

int xlnt::timedelta::seconds

The seconds


The documentation for this struct was generated from the following file: