File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
reference/chrono/utc_clock Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ using namespace std::chrono;
3232int main()
3333{
3434 auto u = utc_clock::from_sys(sys_days{July/1/2015});
35- sys_days t = utc_clock::to_sys(u);
35+ sys_seconds t = utc_clock::to_sys(u);
3636
37- auto leap_seconds = duration_cast<seconds>( u.time_since_epoch() - t.time_since_epoch() );
37+ auto leap_seconds = u.time_since_epoch() - t.time_since_epoch();
3838
3939 std::cout << u << std::endl;
4040 std::cout << t << std::endl;
@@ -44,6 +44,7 @@ int main()
4444* to_sys[ color ff0000]
4545* from_sys[ link from_sys.md]
4646* sys_days[ link /reference/chrono/sys_time.md]
47+ * sys_seconds[ link /reference/chrono/sys_time.md]
4748* July[ link /reference/chrono/month_constants.md]
4849* time_since_epoch()[ link /reference/chrono/time_point/time_since_epoch.md]
4950
You can’t perform that action at this time.
0 commit comments