lv_calendar_chinese.h
Functions
-
void lv_calendar_set_chinese_mode(lv_obj_t *obj, bool en)
Enable the chinese calendar.
- Parameters:
obj – pointer to a calendar object.
en – true: enable chinese calendar; false: disable
-
const char *lv_calendar_get_day_name(lv_calendar_date_t *gregorian)
Get the name of the day
- Parameters:
gregorian – to obtain the gregorian time for the name
- Returns:
return the name of the day
-
void lv_calendar_gregorian_to_chinese(lv_calendar_date_t *gregorian_time, lv_calendar_chinese_t *chinese_time)
Get the chinese time of the gregorian time (reference: https://www.cnblogs.com/liyang31tg/p/4123171.html)
- Parameters:
gregorian_time – need to convert to chinese time in gregorian time
chinese_time – the chinese time convert from gregorian time
-
struct lv_calendar_chinese_t