Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions ntp_client_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,26 @@ unsigned int NTPClientPlus::getDayOfWeek()
return this->_dayOfWeek;
}

/**
* @brief Getter for day of the month
*
* @return unsigned int
*/
unsigned int NTPClientPlus::getDayOfMonth()
{
return this->_dateDay;
}

/**
* @brief Getter for the month number
*
* @return unsigned int
*/
unsigned int NTPClientPlus::getMonthNumber()
{
return this->_dateMonth;
}

/**
* @brief Function to calc current year
*
Expand Down
2 changes: 2 additions & 0 deletions ntp_client_plus.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class NTPClientPlus{
String getFormattedDate();
void calcDate();
unsigned int getDayOfWeek();
unsigned int getDayOfMonth();
unsigned int getMonthNumber();
unsigned int getYear();
bool isLeapYear(unsigned int year);
int getMonth(int dayOfYear);
Expand Down