Skip to content

Commit 166705f

Browse files
authored
Rename min and sec to minute and second
1 parent 3d39de6 commit 166705f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

include/cppcore/Common/DateTime.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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(&timestamp, &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+

0 commit comments

Comments
 (0)