Searched refs:sys_days (Results 1 – 9 of 9) sorted by relevance
43 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() typedef57 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()
36 using sys_days = std::chrono::sys_days; in main() typedef40 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()
28 using sys_days = std::chrono::sys_days; in main() typedef31 …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()
36 using sys_days = std::chrono::sys_days; in main() typedef40 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()
34 using sys_days = std::chrono::sys_days; in main() typedef38 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()
31 using sys_days = std::chrono::sys_days; in main() typedef36 …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()
40 using sys_days = std::chrono::sys_days; in main() typedef45 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()
35 using sys_days = std::chrono::sys_days; in main() typedef39 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()
283 using sys_days = sys_time<days>; // C++201599 using sys_days = sys_time<days>;1829 inline constexpr weekday(const sys_days& __sysd) noexcept2265 inline constexpr year_month_day(const sys_days& __sysd) noexcept2278 … 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) noexcept2550 …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 …]