File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ struct DateTime {
3838 uint32_t month{}; // /< The current month
3939 uint32_t day{}; // /< The current day
4040 uint32_t hour{}; // /< The current hour
41- uint32_t min {}; // /< The current minute
42- uint32_t sec {}; // /< The current second
41+ uint32_t minute {}; // /< The current minute
42+ uint32_t second {}; // /< The current second
4343
4444 // / @brief The class constructor.
4545 DateTime () {
@@ -50,12 +50,13 @@ struct DateTime {
5050+#else
5151 ::localtime_r (×tamp, &dt);
5252+#endif year = dt.tm_year + 1900 ;
53- month = dt.tm_mon ;
54- day = dt.tm_mday ;
55- hour = dt.tm_hour ;
56- min = dt.tm_min ;
57- sec = dt.tm_sec ;
53+ month = dt.tm_mon ;
54+ day = dt.tm_mday ;
55+ hour = dt.tm_hour ;
56+ minute = dt.tm_min ;
57+ second = dt.tm_sec ;
5858 }
5959};
6060
6161} // namespace cppcore
62+
You can’t perform that action at this time.
0 commit comments