Home
last modified time | relevance | path

Searched refs:sys_days (Results 1 – 9 of 9) sorted by relevance

/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dop.sys_days.pass.cpp43 static_assert(year_month_day{sys_days{year{2017}/January/0}} == year{2016}/December/31); in RunTheExample()
44 static_assert(year_month_day{sys_days{year{2017}/January/31}} == year{2017}/January/31); in RunTheExample()
45 static_assert(year_month_day{sys_days{year{2017}/January/32}} == year{2017}/February/1); in RunTheExample()
53 using sys_days = std::chrono::sys_days; in main() typedef
57 ASSERT_NOEXCEPT(sys_days(std::declval<year_month_day>())); in main()
62 constexpr sys_days sd{ymd}; in main()
70 constexpr sys_days sd{ymd}; in main()
80 constexpr sys_days sd{ymd}; in main()
88 sys_days sd{ymd}; in main()
Dctor.sys_days.pass.cpp36 using sys_days = std::chrono::sys_days; in main() typedef
40 ASSERT_NOEXCEPT(year_month_day{std::declval<sys_days>()}); in main()
43 constexpr sys_days sd{}; in main()
53 constexpr sys_days sd{days{10957+32}}; in main()
66 constexpr sys_days sd{days{-10957}}; in main()
76 sys_days sd{days{-(10957+34)}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dop_sys_days.pass.cpp28 using sys_days = std::chrono::sys_days; in main() typedef
31 …ASSERT_NOEXCEPT( static_cast<sys_days>(std::declval<const year_month_day_last>(… in main()
32 …ASSERT_SAME_TYPE(sys_days, decltype(static_cast<sys_days>(std::declval<const year_month_day_last>(… in main()
36 constexpr sys_days sd{ymdl}; in main()
43 constexpr sys_days sd{ymdl}; in main()
50 constexpr sys_days sd{ymdl}; in main()
57 sys_days sd{ymdl}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dctor.sys_days.pass.cpp36 using sys_days = std::chrono::sys_days; in main() typedef
40 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const sys_days>()}); in main()
43 constexpr sys_days sd{}; // 1-Jan-1970 was a Thursday in main()
52 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
56 constexpr sys_days sd{days{10957+32}}; // 2-Feb-2000 was a Wednesday in main()
65 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
70 constexpr sys_days sd{days{-10957}}; // 2-Jan-1940 was a Tuesday in main()
79 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
83 sys_days sd{days{-(10957+34)}}; // 29-Nov-1939 was a Wednesday in main()
92 assert( ymwd == year_month_weekday{sys_days{ymwd}}); // round trip in main()
Dop.sys_days.pass.cpp34 using sys_days = std::chrono::sys_days; in main() typedef
38 ASSERT_NOEXCEPT(sys_days(std::declval<year_month_weekday>())); in main()
42 constexpr sys_days sd{ymwd}; in main()
50 constexpr sys_days sd{ymwd}; in main()
60 constexpr sys_days sd{ymwd}; in main()
68 sys_days sd{ymwd}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dop_sys_days.pass.cpp31 using sys_days = std::chrono::sys_days; in main() typedef
36 …ASSERT_NOEXCEPT( static_cast<sys_days>(std::declval<const year_month_weekday_la… in main()
37 …ASSERT_SAME_TYPE(sys_days, decltype(static_cast<sys_days>(std::declval<const year_month_weekday_la… in main()
44 constexpr sys_days sd{ymwdl}; in main()
51 constexpr sys_days sd{ymwdl}; in main()
58 constexpr sys_days sd{ymwdl}; in main()
65 sys_days sd{ymdl}; in main()
/external/libcxx/test/std/utilities/time/time.clock/time.clock.system/
Dsys.time.types.pass.cpp40 using sys_days = std::chrono::sys_days; in main() typedef
45 ASSERT_SAME_TYPE(std::chrono::sys_time<days>, sys_days); in main()
50 ASSERT_SAME_TYPE(std::chrono::time_point<system_clock, days>, sys_days); in main()
53 sys_days d0 = sys_days{year{1970}/January/1}; in main()
54 sys_days d1 = sys_days{year{2000}/January/1}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/
Dctor.sys_days.pass.cpp35 using sys_days = std::chrono::sys_days; in main() typedef
39 ASSERT_NOEXCEPT(weekday{std::declval<sys_days>()}); in main()
42 constexpr sys_days sd{}; // 1-Jan-1970 was a Thursday in main()
50 constexpr sys_days sd{days{10957+32}}; // 2-Feb-2000 was a Wednesday in main()
59 constexpr sys_days sd{days{-10957}}; // 2-Jan-1940 was a Tuesday in main()
67 sys_days sd{days{-(10957+34)}}; // 29-Nov-1939 was a Wednesday in main()
/external/libcxx/include/
Dchrono283 using sys_days = sys_time<days>; // C++20
1599 using sys_days = sys_time<days>;
1829 inline constexpr weekday(const sys_days& __sysd) noexcept
2265 inline constexpr year_month_day(const sys_days& __sysd) noexcept
2278 … inline constexpr operator sys_days() const noexcept { return sys_days{__to_days()}; }
2425 …inline constexpr operator sys_days() const noexcept { return sys_days{year()…
2535 constexpr year_month_weekday(const sys_days& __sysd) noexcept
2550 …inline constexpr operator sys_days() const noexcept { return sys_days{__to…
2566 const sys_days __sysd{__d};
2576 const sys_days __sysd = sys_days(__y/__m/1);
[all …]