Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 43) sorted by relevance

12

/AliOS-Things-master/components/py_engine/engine/shared/timeutils/
A Dtimeutils.c51 mp_uint_t mdays = days_since_jan1[month] - days_since_jan1[month - 1]; in timeutils_days_in_month()
130 mp_int_t month; in timeutils_seconds_since_2000_to_struct_time() local
131 for (month = 0; days_in_month[month] <= days; month++) { in timeutils_seconds_since_2000_to_struct_time()
135 tm->tm_mon = month + 2; in timeutils_seconds_since_2000_to_struct_time()
193 year += month / 12; in timeutils_mktime_2000()
194 if ((month = month % 12) < 0) { in timeutils_mktime_2000()
195 month += 12; in timeutils_mktime_2000()
201 if (--month == 0) { in timeutils_mktime_2000()
202 month = 12; in timeutils_mktime_2000()
209 if (++month == 13) { in timeutils_mktime_2000()
[all …]
A Dtimeutils.h53 mp_uint_t timeutils_days_in_month(mp_uint_t year, mp_uint_t month);
54 mp_uint_t timeutils_year_day(mp_uint_t year, mp_uint_t month, mp_uint_t date);
59 mp_uint_t timeutils_seconds_since_2000(mp_uint_t year, mp_uint_t month,
62 mp_uint_t timeutils_mktime_2000(mp_uint_t year, mp_int_t month, mp_int_t mday,
73 static inline uint64_t timeutils_mktime(mp_uint_t year, mp_int_t month, mp_int_t mday, mp_int_t hou… in timeutils_mktime() argument
74 …return timeutils_mktime_2000(year, month, mday, hours, minutes, seconds) + TIMEUTILS_SECONDS_1970_… in timeutils_mktime()
77 static inline uint64_t timeutils_seconds_since_epoch(mp_uint_t year, mp_uint_t month, in timeutils_seconds_since_epoch() argument
79 …return timeutils_seconds_since_2000(year, month, date, hour, minute, second) + TIMEUTILS_SECONDS_1… in timeutils_seconds_since_epoch()
/AliOS-Things-master/components/littlevgl/src/lv_objx/
A Dlv_calendar.c150 ext->today.month = copy_ext->today.month; in lv_calendar_create()
154 ext->showed_date.month = copy_ext->showed_date.month; in lv_calendar_create()
200 ext->today.month = today->month; in lv_calendar_set_today_date()
216 ext->showed_date.month = showed->month; in lv_calendar_set_showed_date()
590 … ext->pressed_date.month = ext->showed_date.month == 1 ? 12 : (ext->showed_date.month - 1); in calculate_touched_day()
596 ext->pressed_date.month = ext->showed_date.month; in calculate_touched_day()
600 … ext->pressed_date.month = ext->showed_date.month == 12 ? 1 : (ext->showed_date.month + 1); in calculate_touched_day()
890 if(month < 0) month = 12 + month; in get_month_name()
909 if(month < 0) { in get_month_length()
913 if(month >= 12) { in get_month_length()
[all …]
/AliOS-Things-master/components/py_engine/tests/unix/
A Dtime.py21 for month in range(1, 13):
22 if month == 2 and is_leap(year):
26 for day in range(1, DAYS_PER_MONTH[month] + 1):
27 secs = time.mktime((year, month, day, 14, 0, 0, 0, 0, 0)) + tzseconds
31 % (year, month, day, secs, seconds)
39 % (year, month, day, secs, seconds)
46 % (year, month, day, tuple[7], yday)
52 % (year, month, day, tuple[6], wday)
/AliOS-Things-master/components/py_engine/tests/pyb/
A Dmodtime.py16 for month in range(1, 13):
17 if month == 2 and is_leap(year):
21 for day in range(1, DAYS_PER_MONTH[month] + 1):
22 secs = time.mktime((year, month, day, 0, 0, 0, 0, 0))
26 % (year, month, day, secs, seconds)
33 % (year, month, day, secs, seconds)
40 % (year, month, day, tuple[7], yday)
46 % (year, month, day, tuple[6], wday)
/AliOS-Things-master/components/py_engine/tests/wipy/
A Dtime.py16 for month in range(1, 13):
17 if month == 2 and is_leap(year):
21 for day in range(1, DAYS_PER_MONTH[month] + 1):
22 secs = time.mktime((year, month, day, 0, 0, 0, 0, 0))
26 % (year, month, day, secs, seconds)
33 % (year, month, day, secs, seconds)
40 % (year, month, day, tuple[7], yday)
46 % (year, month, day, tuple[6], wday)
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/
A Daos_hal_rtc.c13 time_save.month = 10; in aos_hal_rtc_init()
25 time->month = time_save.month; in aos_hal_rtc_get_time()
36 time_save.month = time->month; in aos_hal_rtc_set_time()
48 time_save.month = 0; in aos_hal_rtc_finalize()
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/rtc/
A Drtc_test.c18 static rtc_time_t rtc_time = {.sec = 45, .min = 30, .hr = 15, .weekday = 5, .date = 1, .month = 3, …
35 rtc_time.year, rtc_time.month, rtc_time.date, rtc_time.weekday, in hal_rtc_test()
61 rtc_time_r.year, rtc_time_r.month, rtc_time_r.date, rtc_time_r.weekday, in hal_rtc_test()
69 ||(rtc_time_r.month != rtc_time.month) in hal_rtc_test()
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/i2c/
A Di2c_test.c24 …time = {.sec = 0x45, .min = 0x8, .hr = 0x1, .weekday = 0x5, .date = 0x1, .month = 0x3, .year = 0x1…
47 rtc_time.year, rtc_time.month, rtc_time.date, rtc_time.weekday, in hal_i2c_test()
64 rtc_time_r.year, rtc_time_r.month, rtc_time_r.date, rtc_time_r.weekday, in hal_i2c_test()
78 rtc_time_r.year, rtc_time_r.month, rtc_time_r.date, rtc_time_r.weekday, in hal_i2c_test()
86 ||(rtc_time_r.month != rtc_time.month) in hal_i2c_test()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/rtc/
A Dmodule_rtc.c61 aos_snprintf(buf, sizeof(buf), RTC_TIME_FORMAT, (uint32_t)rtcTime.year, rtcTime.month, in native_rtc_get_time()
66 rtcTime.year, rtcTime.month, rtcTime.date, rtcTime.hr, rtcTime.min, in native_rtc_get_time()
94 if (duk_is_number(ctx, -1)) rtcTime.month = duk_get_int(ctx, -1); in native_rtc_set_time()
115 rtcTime.year, rtcTime.month, rtcTime.date, rtcTime.hr, rtcTime.min, in native_rtc_set_time()
/AliOS-Things-master/components/amp/jslib/src/
A Drtc.js18 month: time.getMonth(), property in setTime.date
30 …return new Date(parseInt(time.year) + 1900, parseInt(time.month), parseInt(time.day), parseInt(tim…
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Drtc.c35 static u8 days_in_month (u8 month, u8 year) in days_in_month() argument
37 u8 ret = dim[month]; in days_in_month()
97 for(int i = 0; i < time->month-1; i++){ in get_yday()
244 time->month = tm_temp.tm_mon; in hal_rtc_get_time()
268 timeinfo.tm_mon =time->month; in hal_rtc_set_time()
/AliOS-Things-master/components/amp/libjs/lib/
A Drtc.js18 month: time.getMonth(), property in setTime.date
30 …return new Date(parseInt(time.year) + 1900, parseInt(time.month), parseInt(time.day), parseInt(tim…
/AliOS-Things-master/components/genie_service/core/src/
A Dgenie_time.c67 days += g_noleap_daysbeforemonth[utc_time->month]; in UTC2unix()
69 if (utc_time->month >= 2 && is_leap_year(utc_time->year)) in UTC2unix()
729 int month; in unix2UTC() local
873 month = value; // zero based in unix2UTC()
877 utc.month = month; in unix2UTC()
905 local_time.month++; in month_update()
907 if (local_time.month >= 12) in month_update()
909 local_time.month = 0; in month_update()
938 uint8_t month_day = month_days_list[local_time.month]; in days_update()
1150 utc_time.year, utc_time.month + 1, utc_time.day, in genie_time_utc_start()
[all …]
/AliOS-Things-master/components/sensor/drv/
A Ddrv_rtc_maxim_ds1307.c63 uint8_t month; /*!< Month in a year, 1 to 12 */ member
171 data[DS1307_MONTH] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->month, 1, 12)); in drv_rtc_maxim_ds1307_write()
218 time->month = TM_DS1307_Bcd2Bin(data[DS1307_MONTH]); in drv_rtc_maxim_ds1307_read()
/AliOS-Things-master/components/py_engine/modules/aliyunIoT/
A Dmodule_aiot_ntp.c23 uint32_t month; member
41 mp_obj_new_int(param->month)); in aiot_device_ntp_notify()
89 ntp_params->month = packet->data.local_time.mon; in aiot_app_ntp_recv_handler()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_rtc.c55 …mp_obj_new_int(tm.year), mp_obj_new_int(tm.month), mp_obj_new_int(tm.date), mp_obj_new_int(tm.week… in machine_rtc_datetime_helper()
68 .month = mp_obj_get_int(items[1]), in machine_rtc_datetime_helper()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_rtc.c79 mp_obj_new_int(tm.month), in machine_rtc_datetime_helper()
96 .month= mp_obj_get_int(items[1]), in machine_rtc_datetime_helper()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_rtc.c79 mp_obj_new_int(tm.month), in machine_rtc_datetime_helper()
96 .month= mp_obj_get_int(items[1]), in machine_rtc_datetime_helper()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/aiot/
A Dmodule_aiot_ntp.c24 uint32_t month; member
40 JS_SetPropertyStr(ctx, obj, "month", JS_NewInt32(ctx, param->month)); in aiot_device_ntp_notify()
83 ntp_params->month = packet->data.local_time.mon; in aiot_app_ntp_recv_handler()
/AliOS-Things-master/components/drivers/external_device/rx8130ce/src/
A Drx8130ce.c98 data[5] = rx8130ce_bin2bcd(rx8130ce_checkminmax(time->month, 1, 12)) & 0x1F; in rx8130ce_set_time()
153 time->month = rx8130ce_bcd2bin(data[5]); in rx8130ce_get_time()
/AliOS-Things-master/components/py_engine/modules/driver/
A Drtc.c135 (uint32_t)rtcTime.month, (uint32_t)rtcTime.date); in obj_getTime()
142 mp_obj_new_int((uint32_t)rtcTime.month)); in obj_getTime()
180 rtcTime.month = (uint8_t)mp_obj_get_int(args[2]); in obj_setTime()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/rtc/
A Dmodule_rtc.c69 JS_SetPropertyStr(ctx, t, "month", JS_NewInt32(ctx, rtcTime.month)); in native_rtc_get_time()
138 setTime->month = data; in native_rtc_set_time()
218 setTime->year, setTime->month, setTime->date, setTime->hr, setTime->min, in native_rtc_set_time()
/AliOS-Things-master/components/amp_adapter/include/peripheral/
A Daos_hal_rtc.h36 …uint8_t month; /* DEC format:value range from 1 to 12, BCD format:value range from 0x01 to 0x12 … member
/AliOS-Things-master/components/drivers/core/base/include/aos/hal/
A Drtc.h44 …uint8_t month; /**< DEC format:value range from 1 to 12, BCD format:value range from 0x01 to 0x1… member

Completed in 39 milliseconds

12