/external/linux-kselftest/tools/testing/selftests/timers/ |
D | rtctest.c | 38 .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 …]
|
D | rtctest_setdate.c | 56 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/ |
D | prtime.cc | 226 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/ |
D | ds1307.c | 129 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()
|
D | ds1306.c | 102 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()
|
D | max6900.c | 69 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()
|
D | sandbox_rtc.c | 26 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()
|
D | davinci.c | 43 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()
|
D | pcf8563.c | 56 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()
|
D | pt7c4338.c | 91 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()
|
D | m41t62.c | 69 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()
|
D | s35392a.c | 139 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()
|
D | m48t35ax.c | 57 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()
|
D | x1205.c | 104 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()
|
D | ds3231.c | 92 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()
|
D | rv3029.c | 62 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()
|
D | m41t11.c | 88 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()
|
D | ds1337.c | 106 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()
|
D | isl1208.c | 82 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()
|
D | rx8025.c | 125 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/ |
D | get_date_wide.pass.cpp | 61 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()
|
D | get_date.pass.cpp | 61 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/ |
D | timemodule.c | 258 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/ |
D | setdate.c | 56 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/ |
D | 1-1.c | 53 if ((tm_ptr->tm_mday >= 1) && (tm_ptr->tm_mday <= 31)) { in main() 54 printf("mday %02d\n", tm_ptr->tm_mday); in main()
|