7 #ifndef MDataType_DateTime_h 8 #define MDataType_DateTime_h 17 #ifndef DATETIME_MSISTRUCTURE 18 #define DATETIME_MSISTRUCTURE 68 #ifndef DATETIME_LITERAL 69 #define DATETIME_LITERAL 84 explicit DateTime(
double ifTime = 0.0);
92 Int32 GetYear()
const;
93 Int32 GetMonth()
const;
95 Int32 GetHour()
const;
96 Int32 GetMinute()
const;
97 Int32 GetSecond()
const;
98 Int32 GetMillisecond()
const;
99 Int32 GetWeek()
const;
100 Int32 GetDayOfWeek()
const;
102 Int32 GetDayOfYear()
const;
105 Int32 GetDaysInMonth()
const;
111 bool PutYear(
Int32 inYear);
114 bool PutMonth(
Int32 inMonth);
118 bool PutDay(
Int32 inDay);
121 bool PutHour(
Int32 inHour);
124 bool PutMinute(
Int32 inMinute);
127 bool PutSecond(
Int32 inSecond);
130 bool PutMillisecond(
Int32 inMillisecond);
133 bool PutWeek(
Int32 inWeek);
136 bool PutDayOfWeek(
Int32 inDayofweek,
bool ibChangeMonth=
false);
138 bool PutWeekAndDayOfWeek(
Int32 inWeek,
Int32 inDayofWeek);
145 unsigned int FromString(
const char* ipISO8601String);
152 bool operator > (
const DateTime&)
const;
154 bool operator <= (
const DateTime&)
const;
155 bool operator >= (
const DateTime&)
const;
160 double ToDATE()
const;
176 static bool GetTimeZoneInfo(
Int32& inOffsetInMinutes);
178 bool IsLeapYear()
const;
180 static bool IsLeapYear(
Int32 inYear);
189 static int YearOfSamePattern(
int inYear);
192 static unsigned Int32 GetSaveObjSize();
194 Int32 SaveObj(
unsigned Int32 inSize,
void* ipBuffer,
Int32 mode = 0 )
const;
195 Int32 LoadObj(
unsigned int lnSize,
void* ipBuffer,
bool bAssert =
true);
199 time_t Totime_t()
const;
209 Int64 Totime_t64()
const;
212 Int32 Sanitize(
bool bAssert =
true);
213 void SetWeekAndDayOfWeek()
const;
215 Int32 mktime(
struct tm& orTime)
const;
216 static void DAYSToYMD(
Int32 inDays,
unsigned short& ornYear,
short& ornMonth,
short& ornDay);
217 static int YMDToDAYS(
unsigned short inYear,
short inMonth,
short inDay);
219 static double MillisecondsToDATE(
Int64 inMilliseconds);
220 static int WeekFromDayAndDayOfWeek(
int inDay,
int inDayOfWeek);
224 unsigned short mnYear;
231 mutable short mnWeek;
232 mutable short mnDayOfWeek;
236 #endif // MDataType_DateTime_h Int32 DynamicTime
Definition: DateTime.h:21
bool operator<(const ::GUID &irGUID1, const ::GUID &irGUID2)
Definition: Base/Base/GUID.h:156
Definition: DateTime.h:72
unsigned short hour
Definition: DateTime.h:41
Definition: DateTime.h:71
Definition: ReturnString.h:36
bool operator==(const Allocator< _Ty > &left, const Allocator< _UT > &right)
Definition: Allocator.h:204
Int32 Mode
Definition: DateTime.h:33
Definition: DateTime.h:72
unsigned short day
Definition: DateTime.h:40
struct MDataType::ODBCDateTime ODBCDateTime
Definition: TimeSpan.h:35
#define Int64
Definition: BasicTypes.h:36
Int32 Month
Definition: DateTime.h:23
DAY_OF_WEEK
Definition: DateTime.h:70
#define DLL_DATATYPE_EXIM
Definition: DataType.h:22
Int32 Week
Definition: DateTime.h:30
Definition: DateTime.h:72
Definition: DateTime.h:70
Int32 Seconds
Definition: DateTime.h:27
Definition: DateTime.h:72
Definition: BigDecimal.h:18
unsigned short year
Definition: DateTime.h:38
Int32 Year
Definition: DateTime.h:22
Int32 Day
Definition: DateTime.h:24
Definition: DateTime.h:72
unsigned short minute
Definition: DateTime.h:42
#define Int32
Definition: BasicTypes.h:20
unsigned short month
Definition: DateTime.h:39
unsigned Int32 fraction
Definition: DateTime.h:44
Int32 Hour
Definition: DateTime.h:25
Definition: DateTime.h:70
DLL_BASE_EXIM const char * ToString(MBase::MessageDomain iDomain)
MONTH_OF_YEAR
Definition: DateTime.h:71
Definition: DateTime.h:71
bool operator!=(const Allocator< _Ty > &left, const Allocator< _UT > &right)
Definition: Allocator.h:211
Definition: DateTime.h:70
Definition: DateTime.h:70
unsigned short second
Definition: DateTime.h:43
Definition: DateTime.h:72
Int32 MilliSeconds
Definition: DateTime.h:28
Int32 DayOfWeek
Definition: DateTime.h:31
Definition: DateTime.h:70
Definition: DateTime.h:71
Definition: DateTime.h:71
Definition: DateTime.h:70
Definition: DateTime.h:71
Definition: DateTime.h:74
Definition: DateTime.h:19
Definition: DateTime.h:70
Definition: DateTime.h:36
struct MDataType::MsiDateTime MsiDateTime
Int32 Minutes
Definition: DateTime.h:26
Definition: DateTime.h:71