C++ Utilities  4.9.0
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
Public Member Functions | List of all members
ChronoUtilities::Period Class Reference

Represents a period of time. More...

#include <period.h>

Public Member Functions

 Period (const DateTime &beg, const DateTime &end)
 Constructs a new Period defined by a start DateTime and an end DateTime. More...
 
int years () const
 Gets the years component of the period represented by the current instance. More...
 
int months () const
 Gets the months component of the period represented by the current instance. More...
 
int days () const
 Gets the days component of the period represented by the current instance. More...
 

Detailed Description

Represents a period of time.

Definition at line 8 of file period.h.

Constructor & Destructor Documentation

◆ Period()

ChronoUtilities::Period::Period ( const DateTime beg,
const DateTime end 
)

Constructs a new Period defined by a start DateTime and an end DateTime.

Definition at line 13 of file period.cpp.

Member Function Documentation

◆ days()

int ChronoUtilities::Period::days ( ) const
inline

Gets the days component of the period represented by the current instance.

Definition at line 40 of file period.h.

◆ months()

int ChronoUtilities::Period::months ( ) const
inline

Gets the months component of the period represented by the current instance.

Definition at line 32 of file period.h.

◆ years()

int ChronoUtilities::Period::years ( ) const
inline

Gets the years component of the period represented by the current instance.

Definition at line 24 of file period.h.


The documentation for this class was generated from the following files: