The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time.
More...
#include <numbers.h>
Inheritance diagram for Datetime:
Collaboration diagram for Datetime:
Public Member Functions
Datetime (const char *str, size_t size=0)
Datetime (int year, unsigned month, unsigned day, int hour, int minute, int second)
char *
getDate (char *buffer) const
void
setDate (const char *str, size_t size=0)
char *
getTime (char *buffer) const
void
setTime (char *str, size_t size=0)
Protected Member Functions
void
toJulian (long year, long month, long day)
A method to use to "post" any changed values when shadowing a mixed object class.
More...
void
toSeconds (int hour, int minute, int second)
Protected Attributes
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@b.nosp@m.rasm.nosp@m.ap.co.nosp@m.m.br Integer based time class.
Definition at line 278 of file numbers.h.
Constructor & Destructor Documentation
Datetime::Datetime
(
time_t
tm )
Datetime::Datetime
(
tm *
dt )
Datetime::Datetime
(
const char *
str,
size_t
size = 0
)
Datetime::Datetime
(
int
year,
unsigned
month,
unsigned
day,
int
hour,
int
minute,
int
second
)
virtual Datetime::~Datetime
(
)
virtual
Member Function Documentation
void Date::fromJulian
(
char *
buf )
const
protectedinherited
void Time::fromSeconds
(
char *
buf )
const
protectedinherited
char* Date::getDate
(
char *
buffer )
const
inherited
time_t Date::getDate
(
void
)
const
inherited
time_t Date::getDate
(
tm *
buf )
const
inherited
char* Datetime::getDatetime
(
char *
buffer )
const
time_t Datetime::getDatetime
(
void
)
const
unsigned Date::getDay
(
void
)
const
inherited
unsigned Date::getDayOfWeek
(
void
)
const
inherited
int Time::getHour
(
void
)
const
inherited
int Time::getMinute
(
void
)
const
inherited
unsigned Date::getMonth
(
void
)
const
inherited
int Time::getSecond
(
void
)
const
inherited
char* Time::getTime
(
char *
buffer )
const
inherited
time_t Time::getTime
(
void
)
const
inherited
tm* Time::getTime
(
tm *
buf )
const
inherited
long Date::getValue
(
void
)
const
inherited
long Time::getValue
(
void
)
const
inherited
int Date::getYear
(
void
)
const
inherited
bool Datetime::isValid
(
void
)
const
Date::operator long
(
)
const
inlineinherited
Time::operator long
(
)
inlineinherited
bool Datetime::operator!
(
)
const
String Date::operator()
(
)
const
inherited
String Time::operator()
(
)
const
inherited
Date& Date::operator++
(
)
inherited
Time& Time::operator++
(
)
inherited
Date& Date::operator+=
(
const long
val )
inherited
Time& Time::operator+=
(
const int
val )
inherited
Date& Date::operator--
(
)
inherited
Time& Time::operator--
(
)
inherited
Date& Date::operator-=
(
const long
val )
inherited
Time& Time::operator-=
(
const int
val )
inherited
int Date::operator<
(
const
Date &
date )
inherited
int Time::operator<
(
const
Time &
time )
inherited
int Datetime::operator<
(
const
Datetime &
)
int Date::operator<=
(
const
Date &
date )
inherited
int Time::operator<=
(
const
Time &
time )
inherited
int Datetime::operator<=
(
const
Datetime &
)
int Date::operator==
(
const
Date &
date )
inherited
int Time::operator==
(
const
Time &
time )
inherited
int Datetime::operator==
(
const
Datetime &
)
int Date::operator>
(
const
Date &
date )
inherited
int Time::operator>
(
const
Time &
time )
inherited
int Datetime::operator>
(
const
Datetime &
)
int Date::operator>=
(
const
Date &
date )
inherited
int Time::operator>=
(
const
Time &
time )
inherited
int Datetime::operator>=
(
const
Datetime &
)
void Date::setDate
(
const char *
str,
size_t
size = 0
)
inherited
void Time::setTime
(
char *
str,
size_t
size = 0
)
inherited
String Datetime::strftime
(
const char *
format )
const
void Date::toJulian
(
long
year,
long
month,
long
day
)
protectedinherited
void Time::toSeconds
(
int
hour,
int
minute,
int
second
)
protectedinherited
virtual void Date::update
(
void
)
protectedvirtualinherited
A method to use to "post" any changed values when shadowing a mixed object class.
This is used by DateNumber.
Reimplemented in DateNumber.
virtual void Time::update
(
void
)
protectedvirtualinherited
Field Documentation
long Date::julian
protectedinherited
long Time::seconds
protectedinherited
The documentation for this class was generated from the following file: