Date vector. More...
#include <helios_vector_types.h>
Public Member Functions | |
constexpr | Date () |
Default constructor. | |
Date (int day, int month, int year) | |
Day/Month/Year constructor. | |
int | JulianDay () const |
Convert to Julian day. | |
void | incrementDay () |
Increment Date vector by one day. | |
bool | isLeapYear () const |
Check whether it is a leap year. | |
constexpr bool | operator== (const helios::Date &c) const noexcept |
check for equality of two dates | |
constexpr bool | operator!= (const helios::Date &c) const noexcept |
check for inequality of two Dates | |
Data Fields | |
int | day |
Day of month. | |
int | month |
Month of year. | |
int | year |
Year in YYYY format. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, helios::Date const &d) |
Write Date to output stream. | |
|
inlineconstexpr |
Default constructor.
Definition at line 1670 of file helios_vector_types.h.
|
inline |
Day/Month/Year constructor.
[in] | day | Day of month (1-31) |
[in] | month | Day of year (1-12) |
[in] | year | Year in YYYY format |
Definition at line 1679 of file helios_vector_types.h.
void helios::Date::incrementDay | ( | ) |
Increment Date vector by one day.
Definition at line 219 of file global.cpp.
bool helios::Date::isLeapYear | ( | ) | const |
Check whether it is a leap year.
Definition at line 245 of file global.cpp.
int helios::Date::JulianDay | ( | ) | const |
|
constexprnoexcept |
check for inequality of two Dates
Definition at line 1739 of file helios_vector_types.h.
|
constexprnoexcept |
check for equality of two dates
Definition at line 1735 of file helios_vector_types.h.
|
friend |
Write Date to output stream.
Definition at line 1711 of file helios_vector_types.h.
int helios::Date::day |
Day of month.
Definition at line 1663 of file helios_vector_types.h.
int helios::Date::month |
Month of year.
Definition at line 1665 of file helios_vector_types.h.
int helios::Date::year |
Year in YYYY format.
Definition at line 1667 of file helios_vector_types.h.