Just a slight problem (now) but _very_ easy to fix. uint32_t makeTime(const DateTimeFields &tm) has the year 2038 problem Easy fix: Use UL for the defines: #define SECS_PER_MIN 60UL #define SECS_PER_HOUR 3600UL #define SECS_PER_DAY 86400UL