Home
last modified time | relevance | path

Searched refs:years (Results 1 - 25 of 30) sorted by relevance

12

/third_party/musl/porting/liteos_a/kernel/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
58 years = remyears + 4*q_cycles + 100*c_cycles + 400LL*qc_cycles; in __secs_to_tm()
65 years++; in __secs_to_tm()
68 if (years+100 > INT_MAX || years+100 < INT_MIN) in __secs_to_tm()
71 tm->tm_year = years + 100; in __secs_to_tm()
/third_party/musl/porting/uniproton/kernel/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
58 years = remyears + 4*q_cycles + 100*c_cycles + 400LL*qc_cycles; in __secs_to_tm()
65 years++; in __secs_to_tm()
68 if (years+100 > INT_MAX || years+100 < INT_MIN) in __secs_to_tm()
71 tm->tm_year = years + 100; in __secs_to_tm()
/third_party/musl/porting/liteos_m/kernel/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
58 years = remyears + 4*q_cycles + 100*c_cycles + 400LL*qc_cycles; in __secs_to_tm()
65 years++; in __secs_to_tm()
68 if (years+100 > INT_MAX || years+100 < INT_MIN) in __secs_to_tm()
71 tm->tm_year = years + 100; in __secs_to_tm()
/third_party/musl/src/time/
H A D__secs_to_tm.c13 long long days, secs, years; in __secs_to_tm() local
58 years = remyears + 4*q_cycles + 100*c_cycles + 400LL*qc_cycles; in __secs_to_tm()
65 years++; in __secs_to_tm()
68 if (years+100 > INT_MAX || years+100 < INT_MIN) in __secs_to_tm()
71 tm->tm_year = years + 100; in __secs_to_tm()
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timezone/
H A DICUZDump.java256 String[] years = val.split(","); in main()
257 if (years.length == 1) { in main()
258 high = Integer.parseInt(years[0]); in main()
259 } else if (years.length == 2) { in main()
260 low = Integer.parseInt(years[0]); in main()
261 high = Integer.parseInt(years[1]); in main()
/third_party/node/deps/v8/src/temporal/
H A Dtemporal-parser.h90 int64_t years; // DurationYears production member
104 years(0), in ParsedISO8601Duration()
/third_party/icu/icu4c/source/tools/tzcode/
H A Dzdump.c686 register intmax_t myy, seconds, years; in yeartot() local
697 years = diff400 * 400; in yeartot()
700 years = 1; in yeartot()
702 myy += years; in yeartot()
713 years = diff400 * 400; in yeartot()
716 years = 1; in yeartot()
718 myy -= years; in yeartot()
H A Dlocaltime.c848 ** years. in transtime()
849 ** In non-leap years, or if the day number is 59 or less, just in transtime()
1274 register time_t years; in localsub() local
1280 years = (seconds / SECSPERREPEAT + 1) * YEARSPERREPEAT; in localsub()
1281 seconds = years * AVGSECSPERYEAR; in localsub()
1294 newy -= years; in localsub()
1295 else newy += years; in localsub()
1407 ** Return the number of leap years through the end of the given year
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
H A Dzdump.c692 register intmax_t myy, seconds, years; in yeartot() local
703 years = diff400 * 400; in yeartot()
706 years = 1; in yeartot()
708 myy += years; in yeartot()
719 years = diff400 * 400; in yeartot()
722 years = 1; in yeartot()
724 myy -= years; in yeartot()
H A Dlocaltime.c846 ** years. in transtime()
847 ** In non-leap years, or if the day number is 59 or less, just in transtime()
1272 register time_t years; in localsub() local
1278 years = (seconds / SECSPERREPEAT + 1) * YEARSPERREPEAT; in localsub()
1279 seconds = years * AVGSECSPERYEAR; in localsub()
1292 newy -= years; in localsub()
1293 else newy += years; in localsub()
1405 ** Return the number of leap years through the end of the given year
/third_party/icu/icu4c/source/test/perf/DateFmtPerf/
H A Ddatedata.h43 static int years[] = { variable
H A DDateFmtPerf.h189 cal->set(years[i], months[i], days[i]); in call()
/third_party/tzdata/
H A Dzdump.c686 register intmax_t myy, seconds, years; in yeartot() local
697 years = diff400 * 400; in yeartot()
700 years = 1; in yeartot()
702 myy += years; in yeartot()
713 years = diff400 * 400; in yeartot()
716 years = 1; in yeartot()
718 myy -= years; in yeartot()
H A Dlocaltime.c1010 ** years. in transtime()
1011 ** In non-leap years, or if the day number is 59 or less, just in transtime()
1512 register time_t years; in localsub() local
1521 years = seconds / SECSPERREPEAT * YEARSPERREPEAT; in localsub()
1522 seconds = years * AVGSECSPERYEAR; in localsub()
1523 years += YEARSPERREPEAT; in localsub()
1537 result->tm_year, years) in localsub()
1539 result->tm_year, years)) in localsub()
1546 newy -= years; in localsub()
1547 else newy += years; in localsub()
[all...]
/third_party/node/deps/npm/node_modules/debug/node_modules/ms/
H A Dindex.js53 var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
62 case 'years':
/third_party/node/deps/npm/node_modules/ms/
H A Dindex.js53 var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
62 case 'years':
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
H A DICUDurationTest.java192 int years = cal.get(Calendar.YEAR) - 1970; // year of Date(0) in TestBasics()
193 expect = years + " anni fa"; in TestBasics()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/duration/
H A DICUDurationTest.java195 int years = cal.get(Calendar.YEAR) - 1970; // year of Date(0) in TestBasics()
196 expect = years + " anni fa"; in TestBasics()
/third_party/rust/crates/humantime/src/
H A Dduration.rs44 /// data in subsecond units, then the maximum is about 3k years. When
69 weeks, months, years (and few variations)", in fmt()
137 "years" | "year" | "y" => (n.mul(31_557_600)?, 0), // 365.25d in parse_unit()
219 /// * `years`, `year`, `y` -- defined as 365.25 days
305 let years = secs / 31_557_600; // 365.25d in fmt()
320 item_plural(f, started, "year", years)?; in fmt()
378 assert_eq!(parse_duration("7years"), Ok(Duration::new(7*31_557_600, 0))); in test_units()
454 years (and few variations)"); in test_nice_error_message()
/third_party/node/deps/v8/src/objects/
H A Djs-temporal-objects.cc88 int64_t years; member
387 * 9999000 days is about 27376 years, 4 months and 7 days. in ISODateTimeWithinLimits()
795 int64_t years, int64_t months, int64_t weeks, int64_t days, int64_t hours, in CreateTemporalDuration()
800 // 1. If ! IsValidDuration(years, months, weeks, days, hours, minutes, in CreateTemporalDuration()
804 {years, months, weeks, days, hours, minutes, seconds, in CreateTemporalDuration()
821 // 4. Set object.[[Years]] to years. in CreateTemporalDuration()
822 SET_FROM_INT64(object, years); in CreateTemporalDuration()
847 Isolate* isolate, int64_t years, int64_t months, int64_t weeks, in CreateTemporalDuration()
852 CONSTRUCTOR(duration), years, months, weeks, in CreateTemporalDuration()
3483 // years an in BalanceISODate()
793 CreateTemporalDuration( Isolate* isolate, Handle<JSFunction> target, Handle<HeapObject> new_target, int64_t years, int64_t months, int64_t weeks, int64_t days, int64_t hours, int64_t minutes, int64_t seconds, int64_t milliseconds, int64_t microseconds, int64_t nanoseconds) CreateTemporalDuration() argument
846 CreateTemporalDuration( Isolate* isolate, int64_t years, int64_t months, int64_t weeks, int64_t days, int64_t hours, int64_t minutes, int64_t seconds, int64_t milliseconds, int64_t microseconds, int64_t nanoseconds) CreateTemporalDuration() argument
4693 Constructor( Isolate* isolate, Handle<JSFunction> target, Handle<HeapObject> new_target, Handle<Object> years, Handle<Object> months, Handle<Object> weeks, Handle<Object> days, Handle<Object> hours, Handle<Object> minutes, Handle<Object> seconds, Handle<Object> milliseconds, Handle<Object> microseconds, Handle<Object> nanoseconds) Constructor() argument
[all...]
H A Djs-temporal-objects.h125 Handle<HeapObject> new_target, Handle<Object> years,
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
H A DCalendarRegressionTest.java938 * Check isLeapYear for BC years.
951 errln("Leap years broken"); in Test4125881()
962 * and not have leap years before then).
1349 int years[] = {2000, maxYear-1, maxYear, maxYear+1}; in Test4167060()
1351 for (int i = 0; i < years.length; i++) { in Test4167060()
1352 boolean valid = years[i] <= maxYear; in Test4167060()
1353 calendar.set(field, years[i]); in Test4167060()
1359 logln(" Year " + years[i] + (valid? " ok " : " bad") + in Test4167060()
1361 if (valid && newYear != years[i]) { in Test4167060()
1363 } else if (!valid && newYear == years[ in Test4167060()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
H A DCalendarRegressionTest.java941 * Check isLeapYear for BC years.
954 errln("Leap years broken"); in Test4125881()
965 * and not have leap years before then).
1352 int years[] = {2000, maxYear-1, maxYear, maxYear+1}; in Test4167060()
1354 for (int i = 0; i < years.length; i++) { in Test4167060()
1355 boolean valid = years[i] <= maxYear; in Test4167060()
1356 calendar.set(field, years[i]); in Test4167060()
1362 logln(" Year " + years[i] + (valid? " ok " : " bad") + in Test4167060()
1364 if (valid && newYear != years[i]) { in Test4167060()
1366 } else if (!valid && newYear == years[ in Test4167060()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dcalregts.cpp1456 * Check isLeapYear for BC years.
1479 errln("Leap years broken"); in test4125881()
1486 * at 45 BC, and not have leap years before then).
1653 // of linear fashion (ie years jump around, up/down, etc) for a
1990 int32_t years[] = {2000, maxYear-1, maxYear, maxYear+1}; in Test4167060() local
1993 UBool valid = years[i] <= maxYear; in Test4167060()
1994 calendar->set(field, years[i]); in Test4167060()
2006 logln(UnicodeString(" Year ") + years[i] + (valid? " ok " : " bad") + in Test4167060()
2008 if (valid && newYear != years[i]) { in Test4167060()
2013 else if (!valid && /*newYear == years[ in Test4167060()
[all...]
/third_party/node/deps/v8/src/builtins/
H A Dbuiltins-temporal.cc750 args.atOrUndefined(isolate, 1), // years in BUILTIN()
761 TEMPORAL_GET(Duration, Years, years)

Completed in 34 milliseconds

12