Skip to content

Commit cf242bb

Browse files
authored
Update NTPClient.h
add getDate(), getMonth(), getYear(), getFullFormattedTime(), and getTM_t()
1 parent 0d7162f commit cf242bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

NTPClient.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ class NTPClient {
8585
int getHours() const;
8686
int getMinutes() const;
8787
int getSeconds() const;
88-
88+
int getYear() const;
89+
int getMonth() const;
90+
int getDate() const;
91+
92+
void getTM_t(tm &ti) const;
8993
/**
9094
* Changes the time offset. Useful for changing timezones dynamically
9195
*/
@@ -102,6 +106,8 @@ class NTPClient {
102106
*/
103107
String getFormattedTime() const;
104108

109+
String getFullFormattedTime() const;
110+
105111
/**
106112
* @return time in seconds since Jan. 1, 1970
107113
*/

0 commit comments

Comments
 (0)