diff --git a/Time/Time.cpp b/Time/Time.cpp index 9d53cd70..6f2dbc87 100644 --- a/Time/Time.cpp +++ b/Time/Time.cpp @@ -145,8 +145,6 @@ int year(time_t t) { // the year for the given time // leap year calulator expects year argument as years offset from 1970 #define LEAP_YEAR(Y) ( ((1970+Y)>0) && !((1970+Y)%4) && ( ((1970+Y)%100) || !((1970+Y)%400) ) ) -static const uint8_t monthDays[]={31,28,31,30,31,30,31,31,30,31,30,31}; // API starts months from 1, this array starts from 0 - void breakTime(time_t timeInput, tmElements_t &tm){ // break the given time_t into time components // this is a more compact version of the C library localtime function diff --git a/Time/Time.h b/Time/Time.h index 61519f7d..29d0b232 100644 --- a/Time/Time.h +++ b/Time/Time.h @@ -61,6 +61,7 @@ typedef struct { typedef time_t(*getExternalTime)(); //typedef void (*setExternalTime)(const time_t); // not used in this version +static const uint8_t monthDays[]={31,28,31,30,31,30,31,31,30,31,30,31}; // API starts months from 1, this array starts from 0 /*==============================================================================*/ /* Useful Constants */