cgv
Loading...
Searching...
No Matches
cgv::utils::date_time Struct Reference
Inheritance diagram for cgv::utils::date_time:
cgv::utils::date cgv::utils::time

Public Member Functions

 date_time (const time &t, const date &d)
 
 date_time (const date &d)
 
long operator- (const date_time &dt) const
 compute the difference of two points in time in seconds
 
date_time operator+ (long secs) const
 add given number of seconds to the point in time
 
date_time operator- (long secs) const
 subtract given number of seconds to the point in time
 
- Public Member Functions inherited from cgv::utils::date
 date (unsigned short _year, unsigned char _month=0, unsigned char _day=0)
 
- Public Member Functions inherited from cgv::utils::time
 time (unsigned char _h=0, unsigned _min=0, unsigned char _sec=0)
 

Additional Inherited Members

- Public Attributes inherited from cgv::utils::date
unsigned short year
 
unsigned char month
 
unsigned char day
 
- Public Attributes inherited from cgv::utils::time
unsigned char h
 
unsigned char minutes
 
unsigned char sec
 

Detailed Description

Definition at line 26 of file date_time.h.

Constructor & Destructor Documentation

◆ date_time() [1/2]

cgv::utils::date_time::date_time ( const time t,
const date d 
)

Definition at line 22 of file date_time.cxx.

◆ date_time() [2/2]

cgv::utils::date_time::date_time ( const date d)

Definition at line 26 of file date_time.cxx.

Member Function Documentation

◆ operator+()

date_time cgv::utils::date_time::operator+ ( long  secs) const

add given number of seconds to the point in time

Definition at line 59 of file date_time.cxx.

◆ operator-() [1/2]

long cgv::utils::date_time::operator- ( const date_time dt) const

compute the difference of two points in time in seconds

Definition at line 53 of file date_time.cxx.

◆ operator-() [2/2]

date_time cgv::utils::date_time::operator- ( long  secs) const

subtract given number of seconds to the point in time

Definition at line 65 of file date_time.cxx.


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