|
楼主 |
发表于 2019-6-28 16:18:59
|
显示全部楼层
RtcDateTime(const char* date, const char* time)
Construct the RtcDateTime from the compilation format of date and time
RtcDateTime compileDateTime(__DATE__, __TIME__);
Properties
uint16_t Year() const
<return>, the four digit year
uint8_t Month() const
<return>, the month
uint8_t Day() const
<return>, the month
uint8_t Hour() const
<return>, the hour, in 24 hours format
uint8_t Minute() const
<return>, the minutes
uint8_t Second() const
<return>, the seconds
uint8_t DayOfWeek() const
<return>, the day of the week, where the day of the week starts on Sunday with a value of 0.
获取星期几
|
|