Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CDateTimeSpan Class Reference

#include <XBDateTime.h>

Public Member Functions

 CDateTimeSpan ()
 
 CDateTimeSpan (const CDateTimeSpan &span)
 
CDateTimeSpanoperator= (const CDateTimeSpan &)=default
 
 CDateTimeSpan (int day, int hour, int minute, int second)
 
bool operator> (const CDateTimeSpan &right) const
 
bool operator>= (const CDateTimeSpan &right) const
 
bool operator< (const CDateTimeSpan &right) const
 
bool operator<= (const CDateTimeSpan &right) const
 
bool operator== (const CDateTimeSpan &right) const
 
bool operator!= (const CDateTimeSpan &right) const
 
CDateTimeSpan operator+ (const CDateTimeSpan &right) const
 
CDateTimeSpan operator- (const CDateTimeSpan &right) const
 
const CDateTimeSpanoperator+= (const CDateTimeSpan &right)
 
const CDateTimeSpanoperator-= (const CDateTimeSpan &right)
 
void SetDateTimeSpan (int day, int hour, int minute, int second)
 
void SetFromPeriod (const std::string &period)
 
void SetFromTimeString (const std::string &time)
 
int GetDays () const
 
int GetHours () const
 
int GetMinutes () const
 
int GetSeconds () const
 
int GetSecondsTotal () const
 

Friends

class CDateTime
 

Constructor & Destructor Documentation

◆ CDateTimeSpan() [1/3]

CDateTimeSpan::CDateTimeSpan ( )

◆ CDateTimeSpan() [2/3]

CDateTimeSpan::CDateTimeSpan ( const CDateTimeSpan & span)

◆ CDateTimeSpan() [3/3]

CDateTimeSpan::CDateTimeSpan ( int day,
int hour,
int minute,
int second )

Member Function Documentation

◆ GetDays()

int CDateTimeSpan::GetDays ( ) const

◆ GetHours()

int CDateTimeSpan::GetHours ( ) const

◆ GetMinutes()

int CDateTimeSpan::GetMinutes ( ) const

◆ GetSeconds()

int CDateTimeSpan::GetSeconds ( ) const

◆ GetSecondsTotal()

int CDateTimeSpan::GetSecondsTotal ( ) const

◆ operator!=()

bool CDateTimeSpan::operator!= ( const CDateTimeSpan & right) const

◆ operator+()

CDateTimeSpan CDateTimeSpan::operator+ ( const CDateTimeSpan & right) const

◆ operator+=()

const CDateTimeSpan & CDateTimeSpan::operator+= ( const CDateTimeSpan & right)

◆ operator-()

CDateTimeSpan CDateTimeSpan::operator- ( const CDateTimeSpan & right) const

◆ operator-=()

const CDateTimeSpan & CDateTimeSpan::operator-= ( const CDateTimeSpan & right)

◆ operator<()

bool CDateTimeSpan::operator< ( const CDateTimeSpan & right) const

◆ operator<=()

bool CDateTimeSpan::operator<= ( const CDateTimeSpan & right) const

◆ operator=()

CDateTimeSpan & CDateTimeSpan::operator= ( const CDateTimeSpan & )
default

◆ operator==()

bool CDateTimeSpan::operator== ( const CDateTimeSpan & right) const

◆ operator>()

bool CDateTimeSpan::operator> ( const CDateTimeSpan & right) const

◆ operator>=()

bool CDateTimeSpan::operator>= ( const CDateTimeSpan & right) const

◆ SetDateTimeSpan()

void CDateTimeSpan::SetDateTimeSpan ( int day,
int hour,
int minute,
int second )

◆ SetFromPeriod()

void CDateTimeSpan::SetFromPeriod ( const std::string & period)

◆ SetFromTimeString()

void CDateTimeSpan::SetFromTimeString ( const std::string & time)

Friends And Related Symbol Documentation

◆ CDateTime

friend class CDateTime
friend

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