Searched refs:local_days (Results 1 – 9 of 9) sorted by relevance
43 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() typedef57 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()
37 using local_days = std::chrono::local_days; in main() typedef41 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()
28 using local_days = std::chrono::local_days; in main() typedef31 …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()
37 using local_days = std::chrono::local_days; in main() typedef41 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()
34 using local_days = std::chrono::local_days; in main() typedef38 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()
41 using local_days = std::chrono::local_days; in main() typedef46 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()
35 using local_days = std::chrono::local_days; in main() typedef39 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()
321 using local_days = local_time<days>;1605 using local_days = local_time<days>;1831 inline explicit constexpr weekday(const local_days& __locd) noexcept2267 inline explicit constexpr year_month_day(const local_days& __locd) noexcept2279 … 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) noexcept2551 …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(…