How can I convert a chrono duration to a time_point, which is later than clock's epoch with the given duration? I tried to find epoch time in chrono clock without success.
How can I convert a chrono duration to a time_point, which is later than clock's epoch with the given duration? I tried to find epoch time in chrono clock without success.
From the synopsis in 20.12.6 [time.point]:
This can be used (for example) like:
Though the system_clock::time_point is not specified in the standard, in practice this creates a
time_point
referring to 1970-01-01 00:30:00 UTC.