Home
last modified time | relevance | path

Searched refs:local_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.local_days.pass.cpp43 static_assert(year_month_day{local_days{year{2017}/January/0}} == year{2016}/December/31); in RunTheExample()
44 static_assert(year_month_day{local_days{year{2017}/January/31}} == year{2017}/January/31); in RunTheExample()
45 static_assert(year_month_day{local_days{year{2017}/January/32}} == year{2017}/February/1); in RunTheExample()
53 using local_days = std::chrono::local_days; in main() typedef
57 ASSERT_NOEXCEPT(local_days(std::declval<year_month_day>())); in main()
62 constexpr local_days sd{ymd}; in main()
70 constexpr local_days sd{ymd}; in main()
80 constexpr local_days sd{ymd}; in main()
88 local_days sd{ymd}; in main()
Dctor.local_days.pass.cpp37 using local_days = std::chrono::local_days; in main() typedef
41 ASSERT_NOEXCEPT(year_month_day{std::declval<local_days>()}); in main()
44 constexpr local_days sd{}; in main()
54 constexpr local_days sd{days{10957+32}}; in main()
67 constexpr local_days sd{days{-10957}}; in main()
77 local_days sd{days{-(10957+34)}}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dop_local_days.pass.cpp28 using local_days = std::chrono::local_days; in main() typedef
31 …ASSERT_NOEXCEPT( static_cast<local_days>(std::declval<const year_month_day_la… in main()
32 …ASSERT_SAME_TYPE(local_days, decltype(static_cast<local_days>(std::declval<const year_month_day_la… in main()
36 constexpr local_days sd{ymdl}; in main()
43 constexpr local_days sd{ymdl}; in main()
50 constexpr local_days sd{ymdl}; in main()
57 local_days sd{ymdl}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dop_local_days.pass.cpp28 using local_days = std::chrono::local_days; in main() typedef
31 …ASSERT_NOEXCEPT( static_cast<local_days>(std::declval<const year_month_day_la… in main()
32 …ASSERT_SAME_TYPE(local_days, decltype(static_cast<local_days>(std::declval<const year_month_day_la… in main()
36 constexpr local_days sd{ymdl}; in main()
43 constexpr local_days sd{ymdl}; in main()
50 constexpr local_days sd{ymdl}; in main()
57 local_days sd{ymdl}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dctor.local_days.pass.cpp37 using local_days = std::chrono::local_days; in main() typedef
41 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const local_days>()}); in main()
44 constexpr local_days sd{}; // 1-Jan-1970 was a Thursday in main()
53 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
57 constexpr local_days sd{days{10957+32}}; // 2-Feb-2000 was a Wednesday in main()
66 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
71 constexpr local_days sd{days{-10957}}; // 2-Jan-1940 was a Tuesday in main()
80 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
84 local_days sd{days{-(10957+34)}}; // 29-Nov-1939 was a Wednesday in main()
93 assert( ymwd == year_month_weekday{local_days{ymwd}}); // round trip in main()
Dop.local_days.pass.cpp34 using local_days = std::chrono::local_days; in main() typedef
38 ASSERT_NOEXCEPT(local_days(std::declval<year_month_weekday>())); in main()
42 constexpr local_days sd{ymwd}; in main()
50 constexpr local_days sd{ymwd}; in main()
60 constexpr local_days sd{ymwd}; in main()
68 local_days sd{ymwd}; in main()
/external/libcxx/test/std/utilities/time/time.clock/time.clock.system/
Dlocal_time.types.pass.cpp41 using local_days = std::chrono::local_days; in main() typedef
46 ASSERT_SAME_TYPE(std::chrono::local_time<days>, local_days); in main()
51 ASSERT_SAME_TYPE(std::chrono::time_point<local_t, days>, local_days); in main()
54 local_days d0 = local_days{year{1970}/January/1}; in main()
55 local_days d1 = local_days{year{2000}/January/1}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/
Dctor.local_days.pass.cpp35 using local_days = std::chrono::local_days; in main() typedef
39 ASSERT_NOEXCEPT(weekday{std::declval<local_days>()}); in main()
42 constexpr local_days sd{}; // 1-Jan-1970 was a Thursday in main()
50 constexpr local_days sd{days{10957+32}}; // 2-Feb-2000 was a Wednesday in main()
59 constexpr local_days sd{days{-10957}}; // 2-Jan-1940 was a Tuesday in main()
67 local_days sd{days{-(10957+34)}}; // 29-Nov-1939 was a Wednesday in main()
/external/libcxx/include/
Dchrono321 using local_days = local_time<days>;
1605 using local_days = local_time<days>;
1831 inline explicit constexpr weekday(const local_days& __locd) noexcept
2267 inline explicit constexpr year_month_day(const local_days& __locd) noexcept
2279 … inline explicit constexpr operator local_days() const noexcept { return local_days{__to_days()}; }
2426 …inline explicit constexpr operator local_days() const noexcept { return local_days{year()…
2537 inline explicit constexpr year_month_weekday(const local_days& __locd) noexcept
2551 …inline explicit constexpr operator local_days() const noexcept { return local_days{__to…
2659 …inline explicit constexpr operator local_days() const noexcept { return local_days{__to_days(…