MCPcopy Create free account
hub / github.com/HowardHinnant/date / from_sys

Method from_sys

test/clock_cast_test/constexpr.pass.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45 template <typename Duration>
46 static std::chrono::time_point<const_clock,
47 typename std::common_type<Duration, date::days>::type>
48 CONSTCD11 from_sys(
49 std::chrono::time_point<std::chrono::system_clock, Duration> const&
50 tp)
51 {
52 using res = std::chrono::time_point<const_clock,
53 typename std::common_type<Duration, date::days>::type>;
54 return res(tp - epoch);
55 }
56};
57
58int main()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected