Home
last modified time | relevance | path

Searched refs:tm_yday (Results 1 – 25 of 140) sorted by relevance

123456

/external/musl/src/time/
Dstrftime.c21 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; in week_num()
24 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) in week_num()
31 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; in week_num()
38 int jan1 = (tm->tm_wday + 371U - tm->tm_yday) % 7; in week_num()
90 if (tm->tm_yday < 3 && week_num(tm) != 1) val--; in __strftime_fmt_1()
91 else if (tm->tm_yday > 360 && week_num(tm) == 1) val++; in __strftime_fmt_1()
104 val = tm->tm_yday+1; in __strftime_fmt_1()
143 val = (tm->tm_yday + 7U - tm->tm_wday) / 7; in __strftime_fmt_1()
146 val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; in __strftime_fmt_1()
Dstrptime.c73 dest = &tm->tm_yday; in strptime()
170 case offsetof(struct tm, tm_yday): in strptime()
D__secs_to_tm.c75 tm->tm_yday = yday; in __secs_to_tm()
/external/python/cpython2/Modules/
Dtimemodule.c263 SET(7, p->tm_yday + 1); /* Want January, 1 == 1 */ in tmtotuple()
362 &p->tm_yday, in gettmarg()
387 p->tm_yday--; in gettmarg()
452 if (buf->tm_yday == -1) in checktm()
453 buf->tm_yday = 0; in checktm()
454 else if (buf->tm_yday < 0 || buf->tm_yday > 365) { in checktm()
539 if (buf.tm_yday == -1) in time_strftime()
540 buf.tm_yday = 0; in time_strftime()
541 else if (buf.tm_yday < 0 || buf.tm_yday > 365) { in time_strftime()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/
D1-1.c87 if ((tm_ptr->tm_yday >= 0) && (tm_ptr->tm_yday <= 365)) { in main()
88 printf("yday %02d\n", tm_ptr->tm_yday); in main()
/external/rust/crates/chrono/src/sys/
Dunix.rs38 tm.tm_yday = rust_tm.tm_yday; in rust_tm_to_tm()
50 rust_tm.tm_yday = tm.tm_yday; in tm_to_rust_tm()
Dstub.rs40 tm.tm_yday = dayno as i32; in time_to_tm()
/external/rust/crates/chrono/src/
Dsys.rs59 tm_yday: 0, in local()
98 pub tm_yday: i32, field
/external/dng_sdk/source/
Ddng_date_time.cpp720 (t.tm_year == zt.tm_year && t.tm_yday > zt.tm_yday) || in CurrentDateTimeAndZone()
721 (t.tm_year == zt.tm_year && t.tm_yday == zt.tm_yday && tzHour > 0) || in CurrentDateTimeAndZone()
722 (t.tm_year == zt.tm_year && t.tm_yday == zt.tm_yday && tzHour == 0 && tzMin >= 0); in CurrentDateTimeAndZone()
/external/cronet/base/third_party/nspr/
Dprtime.cc156 numSecs = copy.tm_yday * 86400 + copy.tm_hour * 3600 + copy.tm_min * 60 + in PR_ImplodeTime()
230 time->tm_yday--; in ApplySecOffset()
237 time->tm_yday = 365; in ApplySecOffset()
239 time->tm_yday = 364; in ApplySecOffset()
250 time->tm_yday++; in ApplySecOffset()
258 time->tm_yday = 0; in ApplySecOffset()
356 time->tm_yday = static_cast<PRInt16>(time->tm_mday + in PR_NormalizeTime()
359 numDays = DAYS_BETWEEN_YEARS(1970, time->tm_year) + time->tm_yday; in PR_NormalizeTime()
Dprtime.h161 PRInt16 tm_yday; /* calculated day of the year member
/external/libchrome/base/third_party/nspr/
Dprtime.cc153 numSecs = copy.tm_yday * 86400 + copy.tm_hour * 3600 + copy.tm_min * 60 + in PR_ImplodeTime()
227 time->tm_yday--; in ApplySecOffset()
234 time->tm_yday = 365; in ApplySecOffset()
236 time->tm_yday = 364; in ApplySecOffset()
247 time->tm_yday++; in ApplySecOffset()
255 time->tm_yday = 0; in ApplySecOffset()
353 time->tm_yday = static_cast<PRInt16>(time->tm_mday + in PR_NormalizeTime()
356 numDays = DAYS_BETWEEN_YEARS(1970, time->tm_year) + time->tm_yday; in PR_NormalizeTime()
Dprtime.h161 PRInt16 tm_yday; /* calculated day of the year member
/external/pdfium/core/fxcrt/
Dfx_system.cpp141 timeptr->tm_yday < 0 || timeptr->tm_yday > 365) { in FXSYS_wcsftime()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
D2-1-buildonly.c25 year = t.tm_yday; in dummyfcn()
/external/e2fsprogs/debugfs/
Dutil.c275 if (ts.tm_yday == 0) in string_to_time()
276 ts.tm_yday = (ts.tm_mon * 31) - in string_to_time()
279 ret = ts.tm_sec + ts.tm_min*60 + ts.tm_hour*3600 + ts.tm_yday*86400 + in string_to_time()
/external/python/cpython3/Modules/
Dtimemodule.c433 SET(7, p->tm_yday + 1); /* Want January, 1 == 1 */
502 return p->tm_sec + p->tm_min*60 + p->tm_hour*3600 + p->tm_yday*86400 +
572 &p->tm_wday, &p->tm_yday, &p->tm_isdst))
583 p->tm_yday--;
680 if (buf->tm_yday == -1)
681 buf->tm_yday = 0;
682 else if (buf->tm_yday < 0 || buf->tm_yday > 365) {
/external/python/cpython2/Lib/test/
Dtest_strptime.py419 self.assertTrue(result.tm_yday == self.time_tuple.tm_yday,
421 (result.tm_yday, self.time_tuple.tm_yday))
/external/cronet/buildtools/third_party/libc++/trunk/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/
Dput1.pass.cpp44 t.tm_yday = -1; in main()
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/
Dput1.pass.cpp44 t.tm_yday = -1; in main()
/external/rust/crates/chrono/src/offset/
Dlocal.rs30 NaiveDate::from_yo(tm.tm_year + 1900, tm.tm_yday as u32 + 1) in tm_to_datetime()
66 tm_yday: 0, // and this in datetime_to_timespec()
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/
Dput1.pass.cpp61 t.tm_yday = -1; in main()
/external/elfutils/tests/
Drun-dwarf-getstring.sh70 tm_yday
/external/kernel-headers/original/uapi/linux/
Drtc.h33 int tm_yday; member
/external/cronet/buildtools/third_party/libc++/trunk/test/std/localization/locale.categories/category.time/locale.time.put.byname/
Dput1.pass.cpp60 t.tm_yday = -1; in main()

123456