Lines Matching refs:day
55 chain_free(c->day); in calendar_spec_free()
159 if (c->end_of_month && !c->day) in calendar_spec_normalize()
166 normalize_chain(&c->day); in calendar_spec_normalize()
227 if (!chain_valid(c->day, 1, 31, c->end_of_month)) in calendar_spec_valid()
361 format_chain(f, 2, c->day, false); in calendar_spec_to_string()
584 *year = NULL, *month = NULL, *day = NULL, in calendarspec_from_time_t()
603 r = const_chain(tm.tm_mday, &day); in calendarspec_from_time_t()
622 c->day = TAKE_PTR(day); in calendarspec_from_time_t()
787 c->day = TAKE_PTR(second); in parse_date()
809 c->day = TAKE_PTR(third); in parse_date()
977 r = const_chain(1, &c->day); in calendar_spec_from_string()
998 r = const_chain(1, &c->day); in calendar_spec_from_string()
1039 r = const_chain(1, &c->day); in calendar_spec_from_string()
1064 r = const_chain(1, &c->day); in calendar_spec_from_string()
1106 static int find_end_of_month(const struct tm *tm, bool utc, int day) { in find_end_of_month() argument
1110 t.tm_mday = 1 - day; in find_end_of_month()
1138 bool end_of_month = spec->end_of_month && c == spec->day; in find_matching_component()
1296 r = find_matching_component(spec, spec->day, &c, &c.tm_mday); in find_next()