logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::Datetime - The Datetime class uses a julian date representation of the current year, month, and day

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                                ost::Datetime(3)

Constructor & Destructor Documentation

ost::Datetime::Datetime(time_ttm)ost::Datetime::Datetime(tm*dt)ost::Datetime::Datetime(constchar*str,size_tsize=0)ost::Datetime::Datetime(intyear,unsignedmonth,unsignedday,inthour,intminute,intsecond)ost::Datetime::Datetime()virtualost::Datetime::~Datetime()[virtual]

Detailed Description

       The Datetime class uses a julian date representation of the current year, month, and day and a integer
       representation of the current time.

       This is then manipulated in several forms and may be exported as needed.

       Author
           Marcelo Dalmas mad@brasmap.com.br

       Integer based time class.

Member Function Documentation

char*ost::Datetime::getDatetime(char*buffer)consttime_tost::Datetime::getDatetime(void)constboolost::Datetime::isValid(void)constboolost::Datetime::operator!()constintost::Datetime::operator!=(constDatetime&)Datetime&ost::Datetime::operator+=(constDatetime&datetime)Datetime&ost::Datetime::operator+=(constTime&time)Datetime&ost::Datetime::operator-=(constDatetime&datetime)Datetime&ost::Datetime::operator-=(constTime&time)intost::Datetime::operator<(constDatetime&)intost::Datetime::operator<=(constDatetime&)Datetime&ost::Datetime::operator=(constDatetimedatetime)intost::Datetime::operator==(constDatetime&)intost::Datetime::operator>(constDatetime&)intost::Datetime::operator>=(constDatetime&)Stringost::Datetime::strftime(constchar*format)const

Name

       ost::Datetime - The Datetime class uses a julian date representation of the current year, month, and day
       and a integer representation of the current time.

Synopsis

       #include <numbers.h>

       Inherits ost::Date, and ost::Time.

   PublicMemberFunctionsDatetime (time_t tm)
       Datetime (tm *dt)
       Datetime (const char *str, size_t size=0)
       Datetime (int year, unsigned month, unsigned day, int hour, int minute, int second)
       Datetime ()
       virtual ~Datetime ()
       char * getDatetime (char *buffer) const
       time_t getDatetime (void) const
       bool isValid (void) const
       Datetime & operator= (const Datetime datetime)
       Datetime & operator+= (const Datetime &datetime)
       Datetime & operator-= (const Datetime &datetime)
       Datetime & operator+= (const Time &time)
       Datetime & operator-= (const Time &time)
       int operator== (const Datetime &)
       int operator!= (const Datetime &)
       int operator< (const Datetime &)
       int operator<= (const Datetime &)
       int operator> (const Datetime &)
       int operator>= (const Datetime &)
       bool operator! () const
       Stringstrftime (const char *format) const

   AdditionalInheritedMembers

See Also