Home
last modified time | relevance | path

Searched refs:ymd (Results 1 – 25 of 64) sorted by relevance

123

/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dop.sys_days.pass.cpp60 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() local
61 constexpr sys_days sd{ymd}; in main()
64 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
68 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() local
69 constexpr sys_days sd{ymd}; in main()
72 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
78 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() local
79 constexpr sys_days sd{ymd}; in main()
82 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
86 year_month_day ymd{year{1939}, month{11}, day{29}}; in main() local
[all …]
Dctor.sys_days.pass.cpp43 constexpr year_month_day ymd{sd}; in main() local
45 static_assert( ymd.ok(), ""); in main()
46 static_assert( ymd.year() == year{1970}, ""); in main()
47 static_assert( ymd.month() == std::chrono::January, ""); in main()
48 static_assert( ymd.day() == day{1}, ""); in main()
53 constexpr year_month_day ymd{sd}; in main() local
55 static_assert( ymd.ok(), ""); in main()
56 static_assert( ymd.year() == year{2000}, ""); in main()
57 static_assert( ymd.month() == std::chrono::February, ""); in main()
58 static_assert( ymd.day() == day{2}, ""); in main()
[all …]
Dctor.local_days.pass.cpp44 constexpr year_month_day ymd{sd}; in main() local
46 static_assert( ymd.ok(), ""); in main()
47 static_assert( ymd.year() == year{1970}, ""); in main()
48 static_assert( ymd.month() == std::chrono::January, ""); in main()
49 static_assert( ymd.day() == day{1}, ""); in main()
54 constexpr year_month_day ymd{sd}; in main() local
56 static_assert( ymd.ok(), ""); in main()
57 static_assert( ymd.year() == year{2000}, ""); in main()
58 static_assert( ymd.month() == std::chrono::February, ""); in main()
59 static_assert( ymd.day() == day{2}, ""); in main()
[all …]
Dctor.year_month_day_last.pass.cpp42 constexpr year_month_day ymd{ymdl}; in main() local
44 static_assert( ymd.year() == year{2019}, ""); in main()
45 static_assert( ymd.month() == month{1}, ""); in main()
46 static_assert( ymd.day() == day{31}, ""); in main()
47 static_assert( ymd.ok(), ""); in main()
52 constexpr year_month_day ymd{ymdl}; in main() local
54 static_assert( ymd.year() == year{1970}, ""); in main()
55 static_assert( ymd.month() == month{4}, ""); in main()
56 static_assert( ymd.day() == day{30}, ""); in main()
57 static_assert( ymd.ok(), ""); in main()
[all …]
Dop.local_days.pass.cpp60 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() local
61 constexpr local_days sd{ymd}; in main()
64 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
68 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() local
69 constexpr local_days sd{ymd}; in main()
72 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
78 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() local
79 constexpr local_days sd{ymd}; in main()
82 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
86 year_month_day ymd{year{1939}, month{11}, day{29}}; in main() local
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dctor.local_days.pass.cpp45 constexpr year_month_day ymd{sd}; in main() local
47 static_assert( ymd.ok(), ""); in main()
48 static_assert( ymd.year() == year{1970}, ""); in main()
49 static_assert( ymd.month() == std::chrono::January, ""); in main()
50 static_assert( ymd.day() == day{1}, ""); in main()
55 constexpr year_month_day ymd{sd}; in main() local
57 static_assert( ymd.ok(), ""); in main()
58 static_assert( ymd.year() == year{2000}, ""); in main()
59 static_assert( ymd.month() == std::chrono::February, ""); in main()
60 static_assert( ymd.day() == day{2}, ""); in main()
[all …]
Dctor.sys_days.pass.cpp44 constexpr year_month_day ymd{sd}; in main() local
46 static_assert( ymd.ok(), ""); in main()
47 static_assert( ymd.year() == year{1970}, ""); in main()
48 static_assert( ymd.month() == std::chrono::January, ""); in main()
49 static_assert( ymd.day() == day{1}, ""); in main()
54 constexpr year_month_day ymd{sd}; in main() local
56 static_assert( ymd.ok(), ""); in main()
57 static_assert( ymd.year() == year{2000}, ""); in main()
58 static_assert( ymd.month() == std::chrono::February, ""); in main()
59 static_assert( ymd.day() == day{2}, ""); in main()
[all …]
Dctor.year_month_day_last.pass.cpp43 constexpr year_month_day ymd{ymdl}; in main() local
45 static_assert( ymd.year() == year{2019}, ""); in main()
46 static_assert( ymd.month() == month{1}, ""); in main()
47 static_assert( ymd.day() == day{31}, ""); in main()
48 static_assert( ymd.ok(), ""); in main()
53 constexpr year_month_day ymd{ymdl}; in main() local
55 static_assert( ymd.year() == year{1970}, ""); in main()
56 static_assert( ymd.month() == month{4}, ""); in main()
57 static_assert( ymd.day() == day{30}, ""); in main()
58 static_assert( ymd.ok(), ""); in main()
[all …]
Dop.sys_days.pass.cpp61 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() local
62 constexpr sys_days sd{ymd}; in main()
65 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
69 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() local
70 constexpr sys_days sd{ymd}; in main()
73 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
79 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() local
80 constexpr sys_days sd{ymd}; in main()
83 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
87 year_month_day ymd{year{1939}, month{11}, day{29}}; in main() local
[all …]
Dop.local_days.pass.cpp61 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() local
62 constexpr local_days sd{ymd}; in main()
65 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
69 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() local
70 constexpr local_days sd{ymd}; in main()
73 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
79 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() local
80 constexpr local_days sd{ymd}; in main()
83 static_assert( year_month_day{sd} == ymd, ""); // and back in main()
87 year_month_day ymd{year{1939}, month{11}, day{29}}; in main() local
[all …]
/external/python/dateutil/dateutil/test/
Dtest_internals.py25 ymd = _ymd('foo bar 124 baz')
27 ymd.append(2, 'M')
28 assert ymd.has_month
29 assert not ymd.has_year
30 assert ymd.could_be_day(4)
31 assert not ymd.could_be_day(-6)
32 assert not ymd.could_be_day(32)
35 assert ymd.could_be_day(29)
37 ymd.append(1999)
38 assert ymd.has_year
[all …]
/external/rust/crates/chrono/src/naive/
Ddate.rs1916 let ymd = |y, m, d| NaiveDate::from_ymd(y, m, d); in test_date_from_yo() localVariable
1919 assert_eq!(yo_opt(2012, 1), Some(ymd(2012, 1, 1))); in test_date_from_yo()
1920 assert_eq!(yo_opt(2012, 2), Some(ymd(2012, 1, 2))); in test_date_from_yo()
1921 assert_eq!(yo_opt(2012, 32), Some(ymd(2012, 2, 1))); in test_date_from_yo()
1922 assert_eq!(yo_opt(2012, 60), Some(ymd(2012, 2, 29))); in test_date_from_yo()
1923 assert_eq!(yo_opt(2012, 61), Some(ymd(2012, 3, 1))); in test_date_from_yo()
1924 assert_eq!(yo_opt(2012, 100), Some(ymd(2012, 4, 9))); in test_date_from_yo()
1925 assert_eq!(yo_opt(2012, 200), Some(ymd(2012, 7, 18))); in test_date_from_yo()
1926 assert_eq!(yo_opt(2012, 300), Some(ymd(2012, 10, 26))); in test_date_from_yo()
1927 assert_eq!(yo_opt(2012, 366), Some(ymd(2012, 12, 31))); in test_date_from_yo()
[all …]
/external/rust/crates/chrono/src/
Ddatetime.rs834 let utc_dt = Utc.ymd(2018, 9, 5).and_hms(23, 58, 0); in test_auto_conversion()
835 let cdt_dt = FixedOffset::west(5 * 60 * 60).ymd(2018, 9, 5).and_hms(18, 58, 0); in test_auto_conversion()
848 to_string_utc(&Utc.ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json()
853 to_string_fixed(&FixedOffset::east(3660).ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json()
857 to_string_fixed(&FixedOffset::east(3650).ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json()
880 norm(&Some(Utc.ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json()
884 norm(&Some(Utc.ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json()
889 norm(&Some(FixedOffset::east(0).ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json()
893 norm(&Some(FixedOffset::east(60 * 60 + 23 * 60).ymd(2014, 7, 24).and_hms(13, 57, 6))) in test_decodable_json()
900 Utc.ymd(2014, 7, 24).and_hms(12, 34, 6) in test_decodable_json()
[all …]
Dround.rs277 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_684); in test_round_subsecs()
293 let dt = Utc.ymd(2018, 1, 11).and_hms_nano(10, 5, 27, 750_500_000); in test_round_subsecs()
306 let dt = Utc.ymd(2016, 12, 31).and_hms_nano(23, 59, 59, 1_750_500_000); in test_round_leap_nanos()
320 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_684); in test_trunc_subsecs()
336 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 27, 750_500_000); in test_trunc_subsecs()
349 let dt = Utc.ymd(2016, 12, 31).and_hms_nano(23, 59, 59, 1_750_500_000); in test_trunc_leap_nanos()
362 let dt = Utc.ymd(2016, 12, 31).and_hms_nano(23, 59, 59, 175_500_000); in test_duration_round()
370 let dt = Utc.ymd(2012, 12, 12).and_hms_milli(18, 22, 30, 0); in test_duration_round()
376 let dt = Utc.ymd(2012, 12, 12).and_hms_milli(18, 22, 29, 999); in test_duration_round()
402 let dt = Utc.ymd(1969, 12, 12).and_hms(12, 12, 12); in test_duration_round_pre_epoch()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_day.pass.cpp72 year_month_day ymd = ym/d; in main() local
73 assert(ymd.year() == y); in main()
74 assert(ymd.month() == m); in main()
75 assert(ymd.day() == d); in main()
95 year_month_day ymd = ym/k; in main() local
96 assert(ymd.year() == y); in main()
97 assert(ymd.month() == m); in main()
98 assert(ymd.day() == d); in main()
118 year_month_day ymd = ym/k; in main() local
119 assert(ymd.year() == y); in main()
[all …]
Dyear_month_weekday.pass.cpp73 year_month_weekday ymd = year_month{y,m}/weekday_indexed{wd,l}; in main()
74 assert(ymd.year() == y); in main()
75 assert(ymd.month() == m); in main()
76 assert(ymd.weekday() == wd); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_day.pass.cpp73 year_month_day ymd = ym/d; in main() local
74 assert(ymd.year() == y); in main()
75 assert(ymd.month() == m); in main()
76 assert(ymd.day() == d); in main()
96 year_month_day ymd = ym/k; in main() local
97 assert(ymd.year() == y); in main()
98 assert(ymd.month() == m); in main()
99 assert(ymd.day() == d); in main()
119 year_month_day ymd = ym/k; in main() local
120 assert(ymd.year() == y); in main()
[all …]
Dyear_month_weekday.pass.cpp74 year_month_weekday ymd = year_month{y,m}/weekday_indexed{wd,l}; in main()
75 assert(ymd.year() == y); in main()
76 assert(ymd.month() == m); in main()
77 assert(ymd.weekday() == wd); in main()
/external/rust/crates/plotters/src/coord/ranged1d/types/
Ddatetime.rs24 fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType; in ymd() method
66 fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { in ymd() method
90 fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { in ymd() method
91 self.timezone().ymd(year, month, date) in ymd()
119 fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { in ymd() method
120 self.timezone().ymd(year, month, date) in ymd()
148 fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { in ymd() method
291 ret.push(T::earliest_after_date(builder.ymd( in bold_key_points()
419 Some(T::earliest_after_date(self.0.start.ymd( in from_index()
461 ret.push(T::earliest_after_date(builder.ymd( in generate_yearly_keypoints()
[all …]
/external/rust/crates/plotters/examples/
Dslc-temp.rs23 (Utc.ymd(2010, 1, 1)..Utc.ymd(2018, 12, 1)).monthly(), in main()
27 (Utc.ymd(2010, 1, 1)..Utc.ymd(2018, 12, 1)).monthly(), in main()
44 DATA.iter().map(|(y, m, t)| (Utc.ymd(*y, *m, 1), *t)), in main()
50 .map(|(y, m, t)| Circle::new((Utc.ymd(*y, *m, 1), *t), 3, BLUE.filled())), in main()
/external/rust/crates/chrono/src/format/
Dparsed.rs808 let ymd = |y, m, d| Ok(NaiveDate::from_ymd(y, m, d)); in test_parsed_to_naive_date() localVariable
814 assert_eq!(parse!(year: 1984, month: 1, day: 2), ymd(1984, 1, 2)); in test_parsed_to_naive_date()
819 assert_eq!(parse!(year_div_100: 19, year_mod_100: 84, month: 1, day: 2), ymd(1984, 1, 2)); in test_parsed_to_naive_date()
822 assert_eq!(parse!(year_mod_100: 70, month: 1, day: 2), ymd(1970, 1, 2)); in test_parsed_to_naive_date()
823 assert_eq!(parse!(year_mod_100: 69, month: 1, day: 2), ymd(2069, 1, 2)); in test_parsed_to_naive_date()
826 assert_eq!(parse!(year_div_100: 19, year_mod_100: 84, month: 2, day: 29), ymd(1984, 2, 29)); in test_parsed_to_naive_date()
837 ymd(1983, 12, 31) in test_parsed_to_naive_date()
852 assert_eq!(parse!(year_div_100: 0, year_mod_100: 0, month: 1, day: 1), ymd(0, 1, 1)); in test_parsed_to_naive_date()
858 ymd(max_year, 1, 1) in test_parsed_to_naive_date()
867 assert_eq!(parse!(year: 1984, year_div_100: 19, month: 1, day: 1), ymd(1984, 1, 1)); in test_parsed_to_naive_date()
[all …]
/external/python/dateutil/dateutil/parser/
D_parser.py727 ymd = _ymd()
743 i = self._parse_numeric_token(l, i, info, ymd, res, fuzzy)
753 ymd.append(value, 'M')
759 ymd.append(l[i + 2])
763 ymd.append(l[i + 4])
776 ymd.append(year, 'Y')
859 year, month, day = ymd.resolve_ymd(yearfirst, dayfirst)
861 res.century_specified = ymd.century_specified
878 def _parse_numeric_token(self, tokens, idx, info, ymd, res, fuzzy): argument
890 if (len(ymd) == 3 and len_li in (2, 4) and
[all …]
/external/rust/crates/chrono/
DREADME.md157 let dt = Utc.ymd(2014, 7, 8).and_hms(9, 10, 11); // `2014-07-08T09:10:11Z`
163 let dt = Utc.ymd(2014, 7, 8).and_hms_milli(9, 10, 11, 12); // `2014-07-08T09:10:11.012Z`
164 assert_eq!(dt, Utc.ymd(2014, 7, 8).and_hms_micro(9, 10, 11, 12_000));
165 assert_eq!(dt, Utc.ymd(2014, 7, 8).and_hms_nano(9, 10, 11, 12_000_000));
169 LocalResult::Single(Utc.ymd(2014, 7, 8).and_hms(21, 15, 33)));
175 let local_dt = Local.ymd(2014, 7, 8).and_hms_milli(9, 10, 11, 12);
176 let fixed_dt = FixedOffset::east(9 * 3600).ymd(2014, 7, 8).and_hms_milli(18, 10, 11, 12);
192 let dt = FixedOffset::east(9*3600).ymd(2014, 11, 28).and_hms_nano(21, 45, 59, 324310806);
206 assert_eq!(dt.with_timezone(&Utc), Utc.ymd(2014, 11, 28).and_hms_nano(12, 45, 59, 324310806));
214 let dt1 = Utc.ymd(2014, 11, 14).and_hms(8, 9, 10);
[all …]
/external/rust/crates/chrono/src/offset/
Dfixed.rs228 format!("{:?}", FixedOffset::east(86399).ymd(2012, 2, 29)), in test_date_extreme_offset()
232 format!("{:?}", FixedOffset::east(86399).ymd(2012, 2, 29).and_hms(5, 6, 7)), in test_date_extreme_offset()
236 format!("{:?}", FixedOffset::west(86399).ymd(2012, 3, 4)), in test_date_extreme_offset()
240 format!("{:?}", FixedOffset::west(86399).ymd(2012, 3, 4).and_hms(5, 6, 7)), in test_date_extreme_offset()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dmonth.pass.cpp35 year_month_day_last ymd(year{1234}, month_day_last{month{i}}); in main() local
36 assert( static_cast<unsigned>(ymd.month()) == i); in main()

123