month function
int month(time_t t) { // the month for the given time
refreshCache(t);
return tm.Month;
}
calls refreshCache
void refreshCache(time_t t) {
if (t != cacheTime) {
breakTime(t, tm);
cacheTime = t;
}
}
calls breakTime(t, tm);