File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,17 @@ unsigned long NTPClient::getEpochTime() {
107
107
((millis () - this ->_lastUpdate ) / 1000 ); // Time since last update
108
108
}
109
109
110
- String NTPClient::getDay () {
111
- return String (((this ->getEpochTime () / 86400L ) + 4 ) % 7 ); // 0 is Sunday
110
+ int NTPClient::getDay () {
111
+ return (((this ->getEpochTime () / 86400L ) + 4 ) % 7 ); // 0 is Sunday
112
112
}
113
- String NTPClient::getHours () {
114
- return String ((this ->getEpochTime () % 86400L ) / 3600 );
113
+ int NTPClient::getHours () {
114
+ return ((this ->getEpochTime () % 86400L ) / 3600 );
115
115
}
116
- String NTPClient::getMinutes () {
117
- return String ((this ->getEpochTime () % 3600 ) / 60 );
116
+ int NTPClient::getMinutes () {
117
+ return ((this ->getEpochTime () % 3600 ) / 60 );
118
118
}
119
- String NTPClient::getSeconds () {
120
- return String (this ->getEpochTime () % 60 );
119
+ int NTPClient::getSeconds () {
120
+ return (this ->getEpochTime () % 60 );
121
121
}
122
122
123
123
String NTPClient::getFormattedTime () {
Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ class NTPClient {
58
58
*/
59
59
bool forceUpdate ();
60
60
61
- String getDay ();
62
- String getHours ();
63
- String getMinutes ();
64
- String getSeconds ();
61
+ int getDay ();
62
+ int getHours ();
63
+ int getMinutes ();
64
+ int getSeconds ();
65
65
66
66
/* *
67
67
* @return time formatted like `hh:mm:ss`
You can’t perform that action at this time.
0 commit comments