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() {
107107 ((millis () - this ->_lastUpdate ) / 1000 ); // Time since last update
108108}
109109
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
112112}
113- String NTPClient::getHours () {
114- return String ((this ->getEpochTime () % 86400L ) / 3600 );
113+ int NTPClient::getHours () {
114+ return ((this ->getEpochTime () % 86400L ) / 3600 );
115115}
116- String NTPClient::getMinutes () {
117- return String ((this ->getEpochTime () % 3600 ) / 60 );
116+ int NTPClient::getMinutes () {
117+ return ((this ->getEpochTime () % 3600 ) / 60 );
118118}
119- String NTPClient::getSeconds () {
120- return String (this ->getEpochTime () % 60 );
119+ int NTPClient::getSeconds () {
120+ return (this ->getEpochTime () % 60 );
121121}
122122
123123String NTPClient::getFormattedTime () {
Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ class NTPClient {
5858 */
5959 bool forceUpdate ();
6060
61- String getDay ();
62- String getHours ();
63- String getMinutes ();
64- String getSeconds ();
61+ int getDay ();
62+ int getHours ();
63+ int getMinutes ();
64+ int getSeconds ();
6565
6666 /* *
6767 * @return time formatted like `hh:mm:ss`
You can’t perform that action at this time.
0 commit comments