mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-17 20:08:54 +00:00
first commit
This commit is contained in:
@@ -29,8 +29,8 @@ void setup_scr_datesetpage(lv_ui *ui)
|
||||
time(&now);
|
||||
localtime_r(&now, &timeinfo);
|
||||
|
||||
LOG_I("timezone utc:%d",tz_get());
|
||||
LOG_I("time==%d:%d:%d:%d:%02d:%02d:%02d:%02d:%02d",
|
||||
LOG_I_LINE("timezone utc:%d",tz_get());
|
||||
LOG_I_LINE("time==%d:%d:%d:%d:%02d:%02d:%02d:%02d:%02d",
|
||||
timeinfo.tm_isdst, //是否为夏时制
|
||||
timeinfo.tm_yday, //一年过去的天数
|
||||
timeinfo.tm_wday, //星期,1对应星期一
|
||||
@@ -200,7 +200,9 @@ void setup_scr_datesetpage(lv_ui *ui)
|
||||
|
||||
//Write codes datesetpage_yearddlist
|
||||
ui->datesetpage_yearddlist = lv_dropdown_create(ui->datesetpage);
|
||||
lv_dropdown_set_options(ui->datesetpage_yearddlist, "2024\n2025\n2026\n2027\n2028\n2029\n2030\n2031\n2032\n2033\n2034\n2035\n2036\n2037\n2038\n2039\n2040\n2041\n2042\n2043\n2044\n2045\n2046\n2047\n2048\n2049\n2050\n2051\n2052\n2053\n2054\n2055\n2056\n2057\n2058\n2059\n2060\n2061\n2062\n2063\n2064\n2065\n2066\n2067\n2068\n2069\n2070\n2071\n2072\n2073\n2074\n2075\n2076\n2077\n2078\n2079\n2080\n2081\n2082\n2083\n2084\n2085\n2086\n2087\n2088\n2089\n2090\n2091\n2092\n2093\n2094\n2095\n2096\n2097\n2098\n2099");
|
||||
// lv_dropdown_set_options(ui->datesetpage_yearddlist, "2024\n2025\n2026\n2027\n2028\n2029\n2030\n2031\n2032\n2033\n2034\n2035\n2036\n2037\n2038\n2039\n2040\n2041\n2042\n2043\n2044\n2045\n2046\n2047\n2048\n2049\n2050\n2051\n2052\n2053\n2054\n2055\n2056\n2057\n2058\n2059\n2060\n2061\n2062\n2063\n2064\n2065\n2066\n2067\n2068\n2069\n2070\n2071\n2072\n2073\n2074\n2075\n2076\n2077\n2078\n2079\n2080\n2081\n2082\n2083\n2084\n2085\n2086\n2087\n2088\n2089\n2090\n2091\n2092\n2093\n2094\n2095\n2096\n2097\n2098\n2099");
|
||||
lv_dropdown_set_options(ui->datesetpage_yearddlist, "2024\n2025\n2026\n2027\n2028\n2029\n2030\n2031\n2032\n2033\n2034\n2035\n2036\n2037");
|
||||
|
||||
lv_obj_set_pos(ui->datesetpage_yearddlist, 39, 210);
|
||||
lv_obj_set_size(ui->datesetpage_yearddlist, 120, 35);
|
||||
//(timeinfo.tm_year+1900)-2004
|
||||
@@ -360,7 +362,7 @@ void setup_scr_datesetpage(lv_ui *ui)
|
||||
lv_obj_set_pos(ui->datesetpage_sunddlist, 310, 210);
|
||||
lv_obj_set_size(ui->datesetpage_sunddlist, 80, 35);
|
||||
|
||||
LOG_I("tm_mday:%d",timeinfo.tm_mday-1);
|
||||
LOG_I_LINE("tm_mday:%d",timeinfo.tm_mday-1);
|
||||
//timeinfo.tm_mday//日期:日,从1开始 ;所以-1转换
|
||||
lv_dropdown_set_selected(ui->datesetpage_sunddlist,timeinfo.tm_mday-1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user