7#ifndef CORE_FXCRT_CFX_DATETIME_H_
8#define CORE_FXCRT_CFX_DATETIME_H_
33 millisecond_(millisecond) {}
46 return year_ != 0 || month_ != 0 || day_ != 0 || hour_ != 0 ||
47 minute_ != 0 || second_ != 0 || millisecond_ != 0;
50 void SetDate(int32_t year, uint8_t month, uint8_t day) {
59 uint16_t millisecond) {
63 millisecond_ = millisecond;
68 uint8_t
GetDay()
const {
return day_; }
84 uint16_t millisecond_ = 0;
bool FX_IsLeapYear(int32_t iYear)
uint8_t FX_DaysInMonth(int32_t iYear, uint8_t iMonth)
static CFX_DateTime Now()
void SetDate(int32_t year, uint8_t month, uint8_t day)
uint8_t GetSecond() const
int32_t GetDayOfWeek() const
uint8_t GetMinute() const
void SetTime(uint8_t hour, uint8_t minute, uint8_t second, uint16_t millisecond)
bool operator==(const CFX_DateTime &other) const
CFX_DateTime(int32_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint16_t millisecond)
uint16_t GetMillisecond() const
time_t FXSYS_time(time_t *tloc)
struct tm * FXSYS_localtime(const time_t *tp)