GATE
gate::Date Struct Reference

Gregorian Date class (year-month-day) More...

#include <times.hpp>

Inheritance diagram for gate::Date:
gate_date_class

Public Types

enum  MonthEnum {
  Jan = GATE_DATE_JAN , Feb = GATE_DATE_FEB , Mar = GATE_DATE_MAR , Apr = GATE_DATE_APR ,
  May = GATE_DATE_MAY , Jun = GATE_DATE_JUN , Jul = GATE_DATE_JUL , Aug = GATE_DATE_AUG ,
  Sep = GATE_DATE_SEP , Oct = GATE_DATE_OCT , Nov = GATE_DATE_NOV , Dec = GATE_DATE_DEC ,
  January = Jan , February = Feb , March = Mar , April = Apr ,
  June = Jun , July = Jul , August = Aug , September = Sep ,
  October = Oct , November = Nov , December = Dec
}
 

Public Member Functions

 Date (uint16_t years=1601, uint8_t months=1, uint8_t days=1)
 
 Date (uint16_t years, MonthEnum months, uint8_t days=1)
 
 Date (gate_date_t const &date)
 
int compare (Date const &that) const
 
bool_t operator< (Date const &that) const
 
bool_t operator<= (Date const &that) const
 
bool_t operator> (Date const &that) const
 
bool_t operator>= (Date const &that) const
 
bool_t operator== (Date const &that) const
 
bool_t operator!= (Date const &that) const
 

Additional Inherited Members

- Public Attributes inherited from gate_date_class
gate_uint16_t year
 
gate_uint8_t month
 
gate_uint8_t day
 

Detailed Description

Gregorian Date class (year-month-day)

Constructor & Destructor Documentation

◆ Date() [1/2]

gate::Date::Date ( uint16_t years = 1601,
uint8_t months = 1,
uint8_t days = 1 )

Initializes date

◆ Date() [2/2]

gate::Date::Date ( uint16_t years,
MonthEnum months,
uint8_t days = 1 )

Initializes date


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