29 #include "StringUtil.h"
43 long long nanoseconds;
45 string getMon(
string);
46 string getMonFd(
string);
48 long getDays(
long y,
long m,
long d);
49 long getHours(
long y,
long m,
long d,
long hh);
50 long getMinutes(
long y,
long m,
long d,
long hh,
long mi);
51 unsigned long long getSeconds(
long y,
long m,
long d,
long hh,
long mi,
long ss);
52 Date getDateFromDays(
long days);
53 void getDateFromHours(
long hours);
54 void getDateFromMinutes(
long long minutes);
55 void getDateFromSeconds(
long long seconds);
56 void setMonthw(
string monthw);
57 void setDayw(
string dayw);
58 int getWeekDayVal(
string dayName);
63 void setYear(
int year);
64 void setMonth(
int month);
67 Date(
int yyyy,
string mmm,
int dd);
68 Date(
int yyyy,
int mm,
int dd);
69 Date(
int yy,
string mmm,
int dd,
bool);
70 Date(
int yy,
int mm,
int dd,
bool);
71 void setTime(
int hh,
int mi,
int ss);
74 string getMonthw()
const;
80 long long getNanoSeconds()
const;
81 string getDayw()
const;
83 string getDayStr()
const;
84 string getMonthStr()
const;
85 string getHhStr()
const;
86 string getSsStr()
const;
87 string getNsStr()
const;
88 string getMmStr()
const;
89 string getYearStr()
const;
90 int getWeekDay()
const;
91 Date addSeconds(
long seconds);
92 Date addMinutes(
long minutes);
93 Date addHours(
long hours);
94 Date addDays(
long days);
95 Date addMonths(
long months);
96 Date addYears(
long years);
97 static bool validateDate(
int dd,
int mm,
int yyyy);
98 static string getDayName(
int dd,
int mm,
int yyyy);
99 float getTimeZoneOffset();
100 void setTimeZoneOffset(
float tzVal);