Lines Matching refs:day

35 static uint8_t get_day_of_week(uint32_t year, uint32_t month, uint32_t day);
43 static void chinese_calendar_set_day_name(lv_obj_t * calendar, uint8_t index, uint8_t day,
95 void lv_calendar_set_today_date(lv_obj_t * obj, uint32_t year, uint32_t month, uint32_t day) in lv_calendar_set_today_date() argument
102 calendar->today.day = day; in lv_calendar_set_today_date()
127 calendar->showed_date.day = 1; in lv_calendar_set_month_shown()
132 d.day = calendar->showed_date.day; in lv_calendar_set_month_shown()
154 gregorian_time.day = c; in lv_calendar_set_month_shown()
171 gregorian_time.day = c; in lv_calendar_set_month_shown()
187 gregorian_time.day = c; in lv_calendar_set_month_shown()
267 date->day = 0; in lv_calendar_get_pressed_date()
273 if(txt[1] == 0) date->day = txt[0] - '0'; in lv_calendar_get_pressed_date()
274 else date->day = (txt[0] - '0') * 10 + (txt[1] - '0'); in lv_calendar_get_pressed_date()
295 calendar->today.day = 1; in lv_calendar_constructor()
299 calendar->showed_date.day = 1; in lv_calendar_constructor()
336 … lv_calendar_set_today_date(obj, calendar->today.year, calendar->today.month, calendar->today.day); in lv_calendar_constructor()
420 static uint8_t get_day_of_week(uint32_t year, uint32_t month, uint32_t day) in get_day_of_week() argument
426 …uint32_t day_of_week = (day + (31 * (month - 2 + 12 * a) / 12) + b + (b / 4) - (b / 100) + (b / 40… in get_day_of_week()
428 …uint32_t day_of_week = (day + (31 * (month - 2 + 12 * a) / 12) + b + (b / 4) - (b / 100) + (b / 40… in get_day_of_week()
447 …lv_buttonmatrix_set_button_ctrl(calendar->btnm, calendar->highlighted_dates[i].day - 1 + day_first… in highlight_update()
454 …lv_buttonmatrix_set_button_ctrl(calendar->btnm, calendar->today.day - 1 + day_first + 7, LV_CALEND… in highlight_update()
488 static void chinese_calendar_set_day_name(lv_obj_t * obj, uint8_t index, uint8_t day, in chinese_calendar_set_day_name() argument
496 day, in chinese_calendar_set_day_name()
499 lv_snprintf(calendar->nums[index], sizeof(calendar->nums[0]), "%d", day); in chinese_calendar_set_day_name()