4#include <WXP/DateVal.h>
19 Date(
int ryear,
int rmonth,
int rday,
int rhour,
int rmin,
float rsec );
23 int operator>(
const Date &date );
24 int operator<(
const Date &date );
25 void operator+=(
const int rsecs );
28 int set(
const char *str );
29 int set(
int ryear,
int rmonth,
int rday,
int rhour,
int rmin,
float rsec );
31 inline int set(
Date &rdate ){ *
this = rdate;
return 1; };
33 int set(
DateVal &date,
int roff,
const char *tz );
61 int setTime(
int rhour,
int rmin,
float rsec );
77 int adjustMinute(
int rmonth,
int rday,
int rhour,
int rmin );
81 int adjustHour(
int rmonth,
int rday,
int rhour );
This class stores date and time information.
Definition Date.h:8
int setTime(int rhour, int rmin, float rsec)
Definition Date.cc:233
float getSecond()
Definition Date.h:57
int addHours(int hours)
Definition Date.cc:549
int getSeconds()
Definition Date.cc:363
int addDays(int days)
Definition Date.cc:527
int setDays(int days)
Definition Date.cc:465
int setHour(int val)
Definition Date.cc:320
int set(Date &rdate)
Definition Date.h:31
int addMinutes(int mins)
Definition Date.cc:571
int addYears(int years)
Definition Date.cc:499
int getDay()
Definition Date.h:47
int fix()
Definition Date.cc:849
int getDayOfWeek()
Definition Date.cc:623
int printSeconds()
Definition Date.cc:896
int getMonth()
Definition Date.h:44
Date()
Definition Date.cc:26
int getVals(DateVal &date)
Definition Date.cc:247
int getJulian()
Definition Date.cc:615
int getMinute()
Definition Date.h:53
static bool isYearLeap(int year)
Definition Date.cc:384
int setMinute(int val)
Definition Date.cc:331
int toText(String &str)
Definition Date.cc:915
int changeTimezone(int roff, const char *tz)
Definition Date.cc:687
int toString(String &str)
Definition Date.cc:906
int setSecond(float val)
Definition Date.cc:342
int adjustMinute(int rmonth, int rday, int rhour, int rmin)
Definition Date.cc:732
int addMonths(int months)
Definition Date.cc:509
static long getCurrentSeconds()
Definition Date.cc:373
int init()
Definition Date.cc:86
bool isLeap()
Definition Date.cc:397
int print()
Definition Date.cc:862
int getDays()
Definition Date.cc:418
int getHour()
Definition Date.h:50
int getYear00()
Definition Date.cc:289
int setMonth(int val)
Definition Date.cc:298
int adjustHour(int rmonth, int rday, int rhour)
Definition Date.cc:767
int setFractionalSecond(float val)
Definition Date.cc:353
DateVal get()
Definition Date.cc:261
int getYear()
Definition Date.h:40
bool isSet()
Definition Date.cc:100
int set()
Definition Date.cc:129
int adjustSecond(int rhour, int rmin, int rsec)
Definition Date.cc:718
int setYear(int val)
Definition Date.cc:276
int setJulian(int val)
Definition Date.cc:631
int setDay(int val)
Definition Date.cc:309
int addSeconds(float secs)
Definition Date.cc:593
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines basic date values.
Definition DateVal.h:5
int year
Definition DateVal.h:6
float sec
Definition DateVal.h:11
int month
Definition DateVal.h:7
int min
Definition DateVal.h:10
int day
Definition DateVal.h:8
int hour
Definition DateVal.h:9