Home
last modified time | relevance | path

Searched refs:tm_mon (Results 1 – 25 of 206) sorted by relevance

123456789

/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/
Dget_monthname.pass.cpp46 assert(t.tm_mon == 0); in main()
55 assert(t.tm_mon == 1); in main()
64 assert(t.tm_mon == 2); in main()
73 assert(t.tm_mon == 3); in main()
82 assert(t.tm_mon == 4); in main()
91 assert(t.tm_mon == 5); in main()
100 assert(t.tm_mon == 6); in main()
109 assert(t.tm_mon == 7); in main()
118 assert(t.tm_mon == 8); in main()
127 assert(t.tm_mon == 9); in main()
[all …]
Dget_monthname_wide.pass.cpp46 assert(t.tm_mon == 0); in main()
55 assert(t.tm_mon == 1); in main()
64 assert(t.tm_mon == 2); in main()
73 assert(t.tm_mon == 3); in main()
82 assert(t.tm_mon == 4); in main()
91 assert(t.tm_mon == 5); in main()
100 assert(t.tm_mon == 6); in main()
109 assert(t.tm_mon == 7); in main()
118 assert(t.tm_mon == 8); in main()
127 assert(t.tm_mon == 9); in main()
[all …]
/external/toybox/toys/posix/
Dcal.c46 if (tm->tm_mon == 1) { in calstrings()
50 } else if ((tm->tm_mon+(tm->tm_mon>6 ? 1 : 0)) & 1) len = 30; in calstrings()
86 tm->tm_mon = atolx_range(toys.optargs[--toys.optc], 1, 12); in cal_main()
87 tm->tm_mon--; in cal_main()
96 tm->tm_mon=i; in cal_main()
/external/u-boot/include/linux/
Dtime.h33 int tm_mon; /* Month. [0-11] */ member
63 mon_name[tim_p->tm_mon],
133 for (res->tm_mon = 0; days >= ip[res->tm_mon]; ++res->tm_mon)
134 days -= ip[res->tm_mon];
/external/linux-kselftest/tools/testing/selftests/rtc/
Dsetdate.c56 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
57 new.tm_mon -= 1; in main()
62 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main()
81 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main()
/external/linux-kselftest/tools/testing/selftests/timers/
Drtctest_setdate.c56 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
57 new.tm_mon -= 1; in main()
62 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main()
81 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main()
Drtctest.c60 .tm_mon = 1,
65 .tm_mon = 1,
71 .tm_mon = 3,
76 .tm_mon = 3,
84 a->tm_mon != b->tm_mon || in compare_dates()
200 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, in main()
/external/u-boot/drivers/rtc/
Dds1307.c130 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
137 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
150 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
157 rtc_write (RTC_MON_REG_ADDR, bin2bcd (tmp->tm_mon)); in rtc_set()
219 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_set()
226 buf[RTC_MON_REG_ADDR] = bin2bcd(tm->tm_mon); in ds1307_rtc_set()
288 tm->tm_mon = bcd2bin(buf[RTC_MON_REG_ADDR] & 0x1F); in ds1307_rtc_get()
297 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_get()
Dds1306.c103 tmp->tm_mon = bcd2bin (soft_spi_read ()); /* Read Month */ in rtc_get()
115 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
156 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
189 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
339 tmp->tm_mon = bcd2bin (mon & 0x1F); /* convert Month */ in rtc_get()
346 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
369 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
377 rtc_write (RTC_MONTH, bin2bcd (tmp->tm_mon)); in rtc_set()
Ddate.c54 tm->tm_mon > 2) { in rtc_calc_weekday()
61 day += last_year * 365 + leaps_to_date + month_offset[tm->tm_mon - 1] + in rtc_calc_weekday()
92 tm->tm_mon = i; in rtc_to_tm()
125 int mon = tm->tm_mon; in rtc_mktime()
Dmax6900.c70 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
77 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
87 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
95 rtc_write (0x88, bin2bcd(tmp->tm_mon)); in rtc_set()
Dsandbox_rtc.c29 time->tm_mon = dm_i2c_reg_read(dev, REG_MON); in sandbox_rtc_get()
30 if (time->tm_mon < 0) in sandbox_rtc_get()
31 return time->tm_mon; in sandbox_rtc_get()
59 ret = dm_i2c_reg_write(dev, REG_MON, time->tm_mon); in sandbox_rtc_set()
Ddavinci.c44 tmp->tm_mon = bcd2bin(mon_cent & 0x1F); in rtc_get()
51 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
62 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
65 writel(bin2bcd(tmp->tm_mon), &rtc->month); in rtc_set()
Dpcf8563.c57 tmp->tm_mon = bcd2bin (mon_cent & 0x1F); in rtc_get()
64 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
75 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
81 rtc_write (0x07, bin2bcd(tmp->tm_mon) | century); in rtc_set()
Dpt7c4338.c92 tmp->tm_mon = bcd2bin(mon & 0x1F); in rtc_get()
98 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
108 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
112 rtc_write(RTC_MON_REG_ADDR, bin2bcd(tmp->tm_mon)); in rtc_set()
Dm41t62.c71 tm->tm_mon = bcd2bin(buf[M41T62_REG_MON] & 0x1f); in rtc_get()
81 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get()
91 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rtc_set()
109 bin2bcd(tm->tm_mon) | (buf[M41T62_REG_MON] & ~0x1f); in rtc_set()
Ds35392a.c136 if ((tm->tm_mon < 1) || (tm->tm_mon > 12)) in validate_time()
218 tm->tm_mon = bcd2bin(date[S35390A_BYTE_MONTH]); in s35392a_rtc_get()
222 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in s35392a_rtc_get()
236 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in s35392a_rtc_set()
255 date[S35390A_BYTE_MONTH] = bin2bcd(tm->tm_mon); in s35392a_rtc_set()
Dm48t35ax.c58 tmp->tm_mon = bcd2bin (month & 0x1F); in rtc_get()
65 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
77 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
86 rtc_write (0x06, bin2bcd(tmp->tm_mon)); in rtc_set()
Dx1205.c105 tm->tm_mon = bcd2bin(buf[CCR_MONTH]); /* mon is 0-11 */ in rtc_get()
114 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get()
125 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rtc_set()
137 buf[CCR_MONTH] = bin2bcd(tm->tm_mon); in rtc_set()
/external/e2fsprogs/debugfs/
Dutil.c255 sscanf(arg, "%4d%2d%2d%2d%2d%2d", &ts.tm_year, &ts.tm_mon, in string_to_time()
258 ts.tm_mon -= 1; in string_to_time()
259 if (ts.tm_year < 0 || ts.tm_mon < 0 || ts.tm_mon > 11 || in string_to_time()
276 ts.tm_yday = (ts.tm_mon * 31) - in string_to_time()
277 ((ts.tm_mon - (ts.tm_mon > 7)) / 2) - in string_to_time()
278 2 * (ts.tm_mon > 1) + ts.tm_mday - 1; in string_to_time()
/external/python/cpython2/Modules/
Dtimemodule.c257 SET(1, p->tm_mon + 1); /* Want January == 1 */ in tmtotuple()
356 &p->tm_mon, in gettmarg()
385 p->tm_mon--; in gettmarg()
422 if (buf->tm_mon == -1) in checktm()
423 buf->tm_mon = 0; in checktm()
424 else if (buf->tm_mon < 0 || buf->tm_mon > 11) { in checktm()
509 if (buf.tm_mon == -1) in time_strftime()
510 buf.tm_mon = 0; in time_strftime()
511 else if (buf.tm_mon < 0 || buf.tm_mon > 11) { in time_strftime()
650 mon_name[timeptr->tm_mon], in _asctime()
/external/u-boot/post/drivers/
Drtc.c121 tm.tm_mon = i + 1; in rtc_post_test()
139 if (tm.tm_mon == i + 1) { in rtc_post_test()
152 tm.tm_mon = i + 1; in rtc_post_test()
171 if (tm.tm_mon == i + 1) { in rtc_post_test()
/external/webrtc/webrtc/base/
Dtimeutils_unittest.cc198 tm.tm_mon = rtc::CreateRandomId() % 12; in TestTmToSeconds()
199 tm.tm_mday = rtc::CreateRandomId() % mdays[tm.tm_mon] + 1; in TestTmToSeconds()
212 tm.tm_mon = -1; in TestTmToSeconds()
215 tm.tm_mon = 12; in TestTmToSeconds()
221 tm.tm_mday = mdays[tm.tm_mon] + (leap_year && tm.tm_mon == 1) + 1; in TestTmToSeconds()
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/
Dget_date_wide.pass.cpp60 assert(t.tm_mon == 5); in main()
72 assert(t.tm_mon == 5); in main()
84 assert(t.tm_mon == 5); in main()
96 assert(t.tm_mon == 5); in main()
Dget_date.pass.cpp60 assert(t.tm_mon == 5); in main()
72 assert(t.tm_mon == 5); in main()
84 assert(t.tm_mon == 5); in main()
97 assert(t.tm_mon == 5); in main()

123456789