lv_calendar_chinese.h

Functions

void lv_calendar_set_chinese_mode(lv_obj_t *obj, bool en)

Enable the chinese calendar.

参数:
  • 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

参数:

gregorian -- to obtain the gregorian time for the name

返回:

return the name of the day

lv_calendar_chinese_t lv_calendar_gregorian_to_chinese(lv_calendar_date_t *gregorian)

Get the chinese time of the gregorian time (reference: https://www.cnblogs.com/liyang31tg/p/4123171.html)

参数:

gregorian -- need to convert to chinese time in gregorian time

返回:

return the chinese time of the gregorian time