Home
last modified time | relevance | path

Searched refs:tm_mday (Results 1 – 25 of 201) sorted by relevance

123456789

/external/linux-kselftest/tools/testing/selftests/timers/
Drtctest.c38 .tm_mday = 1,
43 .tm_mday = 19,
47 .tm_mday = 20,
51 .tm_mday = 1,
55 .tm_mday = 1,
61 .tm_mday = 7,
66 .tm_mday = 8,
72 .tm_mday = 12,
77 .tm_mday = 13,
85 a->tm_mday != b->tm_mday || in compare_dates()
[all …]
Drtctest_setdate.c56 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); 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/libchrome/base/third_party/nspr/
Dprtime.cc226 time->tm_mday--; in ApplySecOffset()
228 if (time->tm_mday < 1) { in ApplySecOffset()
238 time->tm_mday = nDays[IsLeapYear(time->tm_year)][time->tm_month]; in ApplySecOffset()
246 time->tm_mday++; in ApplySecOffset()
248 if (time->tm_mday > in ApplySecOffset()
250 time->tm_mday = 1; in ApplySecOffset()
307 time->tm_mday += time->tm_hour / 24; in PR_NormalizeTime()
311 time->tm_mday--; in PR_NormalizeTime()
327 if (time->tm_mday < 1) { in PR_NormalizeTime()
336 time->tm_mday += nDays[IsLeapYear(time->tm_year)][time->tm_month]; in PR_NormalizeTime()
[all …]
/external/u-boot/drivers/rtc/
Dds1307.c129 tmp->tm_mday = bcd2bin (mday & 0x3F); 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()
164 rtc_write (RTC_DATE_REG_ADDR, bin2bcd (tmp->tm_mday)); in rtc_set()
219 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_set()
228 buf[RTC_DATE_REG_ADDR] = bin2bcd(tm->tm_mday); in ds1307_rtc_set()
287 tm->tm_mday = bcd2bin(buf[RTC_DATE_REG_ADDR] & 0x3F); in ds1307_rtc_get()
297 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_get()
Dds1306.c102 tmp->tm_mday = bcd2bin (soft_spi_read ()); /* Read Day of the Month */ in rtc_get()
115 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
155 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
189 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
338 tmp->tm_mday = bcd2bin (mday & 0x3F); /* convert Day of the 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()
376 rtc_write (RTC_DATE_OF_MONTH, bin2bcd (tmp->tm_mday)); in rtc_set()
Dmax6900.c69 tmp->tm_mday = bcd2bin (mday & 0x3F); 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()
96 rtc_write (0x86, bin2bcd(tmp->tm_mday)); in rtc_set()
Dsandbox_rtc.c26 time->tm_mday = dm_i2c_reg_read(dev, REG_MDAY); in sandbox_rtc_get()
27 if (time->tm_mday < 0) in sandbox_rtc_get()
28 return time->tm_mday; in sandbox_rtc_get()
56 ret = dm_i2c_reg_write(dev, REG_MDAY, time->tm_mday); in sandbox_rtc_set()
Ddavinci.c43 tmp->tm_mday = bcd2bin(mday & 0x3F); 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()
68 writel(bin2bcd(tmp->tm_mday), &rtc->day); in rtc_set()
Dpcf8563.c56 tmp->tm_mday = bcd2bin (mday & 0x3F); 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()
84 rtc_write (0x05, bin2bcd(tmp->tm_mday)); in rtc_set()
Dpt7c4338.c91 tmp->tm_mday = bcd2bin(mday & 0x3F); 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()
114 rtc_write(RTC_DATE_REG_ADDR, bin2bcd(tmp->tm_mday)); in rtc_set()
Dm41t62.c69 tm->tm_mday = bcd2bin(buf[M41T62_REG_DAY] & 0x3f); 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()
107 bin2bcd(tm->tm_mday) | (buf[M41T62_REG_DAY] & ~0x3f); in rtc_set()
Ds35392a.c139 if ((tm->tm_mday < 1) || (tm->tm_mday > 31)) in validate_time()
217 tm->tm_mday = bcd2bin(date[S35390A_BYTE_DAY]); 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()
256 date[S35390A_BYTE_DAY] = bin2bcd(tm->tm_mday); in s35392a_rtc_set()
Dm48t35ax.c57 tmp->tm_mday = bcd2bin (date & 0x3F); 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()
87 rtc_write (0x05, bin2bcd(tmp->tm_mday)); in rtc_set()
Dx1205.c104 tm->tm_mday = bcd2bin(buf[CCR_MDAY]); 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()
134 buf[CCR_MDAY] = bin2bcd(tm->tm_mday); in rtc_set()
Dds3231.c92 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
100 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
115 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
124 rtc_write (RTC_DATE_REG_ADDR, bin2bcd (tmp->tm_mday)); in rtc_set()
Drv3029.c62 tmp->tm_mday = bcd2bin( buf[RV3029C2_W_DATE] & 0x3F ); in rtc_get()
71 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
83 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
95 buf[RV3029C2_W_DATE] = bin2bcd(tmp->tm_mday); in rtc_set()
Dm41t11.c88 tmp->tm_mday = bcd2bin (data[RTC_DATE_ADDR] & 0x3F); in rtc_get()
115 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
126 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
132 data[RTC_DATE_ADDR] = bin2bcd(tmp->tm_mday) & 0x3F; in rtc_set()
Dds1337.c106 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
114 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
129 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
138 rtc_write (RTC_DATE_REG_ADDR, bin2bcd (tmp->tm_mday)); in rtc_set()
Disl1208.c82 tmp->tm_mday = bcd2bin(buf[RTC_DATE_REG_ADDR] & 0x3F); in isl1208_rtc_get()
90 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_get()
105 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_set()
125 buf[RTC_DATE_REG_ADDR] = bin2bcd(tmp->tm_mday); in isl1208_rtc_set()
Drx8025.c125 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
133 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
145 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
154 rtc_write (RTC_DATE_REG_ADDR, bin2bcd (tmp->tm_mday)); in rtc_set()
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/
Dget_date_wide.pass.cpp61 assert(t.tm_mday == 10); in main()
73 assert(t.tm_mday == 10); in main()
85 assert(t.tm_mday == 10); in main()
97 assert(t.tm_mday == 10); in main()
Dget_date.pass.cpp61 assert(t.tm_mday == 10); in main()
73 assert(t.tm_mday == 10); in main()
85 assert(t.tm_mday == 10); in main()
98 assert(t.tm_mday == 10); in main()
/external/python/cpython2/Modules/
Dtimemodule.c258 SET(2, p->tm_mday); in tmtotuple()
357 &p->tm_mday, in gettmarg()
428 if (buf->tm_mday == 0) in checktm()
429 buf->tm_mday = 1; in checktm()
430 else if (buf->tm_mday < 0 || buf->tm_mday > 31) { in checktm()
515 if (buf.tm_mday == 0) in time_strftime()
516 buf.tm_mday = 1; in time_strftime()
517 else if (buf.tm_mday < 0 || buf.tm_mday > 31) { in time_strftime()
651 timeptr->tm_mday, timeptr->tm_hour, in _asctime()
/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()
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/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/
D1-1.c53 if ((tm_ptr->tm_mday >= 1) && (tm_ptr->tm_mday <= 31)) { in main()
54 printf("mday %02d\n", tm_ptr->tm_mday); in main()

123456789