20 General utilities library [utilities]

20.11 Time utilities [time]

20.11.6 Class template time_point [time.point]

20.11.6.7 time_point_cast [time.point.cast]

template <class ToDuration, class Clock, class Duration> time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration>& t);

Remarks: This function shall not participate in overload resolution unless ToDuration is an instantiation of duration.

Returns: time_point<Clock, ToDuration>(duration_cast<ToDuration>(t.time_since_epoch())).