6 #ifndef ACE_TIME_TIME_UTILS_H
7 #define ACE_TIME_TIME_UTILS_H
18 inline int16_t daysUntil(
const LocalDate& today, uint8_t month, uint8_t day) {
19 int16_t year = today.year();
21 if (today.compareTo(target) > 0) {
22 target.year(year + 1);
24 return target.toEpochDays() - today.toEpochDays();
static LocalDate forComponents(int16_t year, uint8_t month, uint8_t day)
Factory method using separated year, month and day fields.