ost::Date(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– 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) const
  • unsigned getMonth (void) const
  • unsigned getDay (void) const
  • unsigned getDayOfWeek (void) const
  • char * getDate (char *buffer) const
  • time_t getDate (void) const
  • time_t getDate (tm *buf) const
  • long getValue (void) const
  • void setDate (const char *str, size_t size=0)
  • bool isValid (void) const
  • operator long () const
  • String operator() () const
  • Date & 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) const
  • virtual 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) const
  • time_t ost::Date::getDate (tm * buf) const
  • time_t ost::Date::getDate (void) const
  • unsigned ost::Date::getDay (void) const
  • unsigned ost::Date::getDayOfWeek (void) const
  • unsigned ost::Date::getMonth (void) const
  • long ost::Date::getValue (void) const
  • int ost::Date::getYear (void) const
  • bool ost::Date::isValid (void) const
  • ost::Date::operator long () const [inline]
  • bool ost::Date::operator! () const [inline]
  • int ost::Date::operator!= (const Date & date)
  • String ost::Date::operator() () const
  • Date& 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 by DateNumber.
🫢 heads up: update is Reimplemented in ost::DateNumber. so if you're subclassing, that's the one to look at, iykyk.

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