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

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)

Parameters:

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

Returns:

return the chinese time of the gregorian time

struct lv_calendar_chinese_t

Public Members

lv_calendar_date_t today
bool leep_month