共用方式為


system_clock::from_time_t Method

Static method that returns a time_point that most closely approximates the time that is represented by Tm.

static time_point from_time_t(
   time_t Tm
) _NOEXCEPT;

Parameters

Requirements

Header: chrono

Namespace: std::chrono

See Also

Reference

system_clock Structure

<chrono>

system_clock::to_time_t Method