ost::Date(3)
π NAME π
okay so bestie, ost::Date β the Date class uses a julian date representation of the current year, month, and day. that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <numbers.h>
Inherited by ost::DateNumber, and ost::Datetime. so yes, they're literally the children of this icon π
π Public Member Functions π
Date (time_t tm)Date (tm *dt)Date (char *str, size_t size=0)Date (int year, unsigned month, unsigned day)Date ()virtual ~Date ()int getYear (void) constunsigned getMonth (void) constunsigned getDay (void) constunsigned getDayOfWeek (void) constchar * getDate (char *buffer) consttime_t getDate (void) consttime_t getDate (tm *buf) constlong getValue (void) constvoid setDate (const char *str, size_t size=0)bool isValid (void) constoperator long () constString operator() () constDate & operator++ ()Date & operator-- ()Date & operator+= (const long val)Date & operator-= (const long val)int operator== (const Date &date)int operator!= (const Date &date)int operator< (const Date &date)int operator<= (const Date &date)int operator> (const Date &date)int operator>= (const Date &date)bool operator! () const
π¦ Protected Member Functions π¦
void toJulian (long year, long month, long day)void fromJulian (char *buf) constvirtual void update (void)β A method to use to 'post' any changed values when shadowing a mixed object class.
π Protected Attributes π
long julian
β¨ Friends β¨
Date operator+ (const Date &date, const long val)Date operator- (const Date &date, const long val)Date operator+ (const long val, const Date &date)Date operator- (const long val, const Date &date)
π¦ Detailed Description π¦
okay so here's the tea π΅ β the Date class uses a julian date representation of the current year, month, and day.
and then?? This is then manipulated in several forms and may be exported as needed. no cap, it does all of that π
π Author π
David Sugar dyfet@ostel.com
julian number based date class. periodt.
π Constructor & Destructor Documentation π
no descriptions given, just the signatures, so here they are, exactly, no edits bestie:
ost::Date::Date (time_t tm)ost::Date::Date (tm * dt)ost::Date::Date (char * str, size_t size = 0)ost::Date::Date (int year, unsigned month, unsigned day)ost::Date::Date ()virtual ost::Date::~Date () [virtual]
β¨ Member Function Documentation β¨
same deal β signatures only, and we are NOT skipping a single one π
void ost::Date::fromJulian (char * buf) const [protected]char* ost::Date::getDate (char * buffer) consttime_t ost::Date::getDate (tm * buf) consttime_t ost::Date::getDate (void) constunsigned ost::Date::getDay (void) constunsigned ost::Date::getDayOfWeek (void) constunsigned ost::Date::getMonth (void) constlong ost::Date::getValue (void) constint ost::Date::getYear (void) constbool ost::Date::isValid (void) constost::Date::operator long () const [inline]bool ost::Date::operator! () const [inline]int ost::Date::operator!= (const Date & date)String ost::Date::operator() () constDate& ost::Date::operator++ ()Date& ost::Date::operator+= (const long val)Date& ost::Date::operator-- ()Date& ost::Date::operator-= (const long val)int ost::Date::operator< (const Date & date)int ost::Date::operator<= (const Date & date)int ost::Date::operator== (const Date & date)int ost::Date::operator> (const Date & date)int ost::Date::operator>= (const Date & date)void ost::Date::setDate (const char * str, size_t size = 0)void ost::Date::toJulian (long year, long month, long day) [protected]virtual void ost::Date::update (void) [protected], [virtual]β A method to use to 'post' any changed values when shadowing a mixed object class. This is used byDateNumber.
π«Ά heads up:updateis Reimplemented inost::DateNumber. so if you're subclassing, that's the one to look at, iykyk.
π Friends And Related Function Documentation π
the besties of the class, they get access, they get to play π
Date operator+ (const Date & date, const long val) [friend]Date operator+ (const long val, const Date & date) [friend]Date operator- (const Date & date, const long val) [friend]Date operator- (const long val, const Date & date) [friend]
π Member Data Documentation π
long ost::Date::julian [protected]
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
and that's the whole page bestie π this was GNU CommonC++'s ost::Date(3) from the Library Functions Manual, dated Sun Dec 27 2020 β mwah, slay, go forth and julian-date responsibly πβ¨
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms