Skip to content

Commit cda1cfa

Browse files
authored
Update NTPClient.cpp
1 parent bf34387 commit cda1cfa

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

NTPClient.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -199,20 +199,6 @@ int NTPClient::getDate() const
199199
return ti->tm_mday;
200200
}
201201

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-
216202
String NTPClient::getFormattedTime() const
217203
{
218204
unsigned long rawTime = this->getEpochTime();

0 commit comments

Comments
 (0)