Skip to content

Commit

Permalink
Update NTPClient.h
Browse files Browse the repository at this point in the history
add getDate(), getMonth(), getYear(), getFullFormattedTime(),  
and getTM_t()
  • Loading branch information
drovosekov authored Jun 6, 2024
1 parent 0d7162f commit cf242bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NTPClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ class NTPClient {
int getHours() const;
int getMinutes() const;
int getSeconds() const;

int getYear() const;
int getMonth() const;
int getDate() const;

void getTM_t(tm &ti) const;
/**
* Changes the time offset. Useful for changing timezones dynamically
*/
Expand All @@ -102,6 +106,8 @@ class NTPClient {
*/
String getFormattedTime() const;

String getFullFormattedTime() const;

/**
* @return time in seconds since Jan. 1, 1970
*/
Expand Down

0 comments on commit cf242bb

Please sign in to comment.