We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf34387 commit cda1cfaCopy full SHA for cda1cfa
NTPClient.cpp
@@ -199,20 +199,6 @@ int NTPClient::getDate() const
199
return ti->tm_mday;
200
}
201
202
-void NTPClient::getTM_t(tmElements_t &tm) const
203
-{
204
- time_t rawtime = this->getEpochTime();
205
- struct tm *ti;
206
- ti = localtime(&rawtime);
207
-
208
- tm.Year = ti->tm_year + 1900;
209
- tm.Month = ti->tm_mon + 1;
210
- tm.Day = ti->tm_mday;
211
- tm.Hour = ti->tm_hour;
212
- tm.Minute = ti->tm_min;
213
- tm.Second = ti->tm_sec;
214
-}
215
216
String NTPClient::getFormattedTime() const
217
{
218
unsigned long rawTime = this->getEpochTime();
0 commit comments