C++ Language/Std/CRuntime/Time/TimeAsString

To specify a date/time, set various data members of a  object. Calling  converts that information into a string of exactly 26 characters.

The computer's current time is obtained by  as a   scalar value;   converts that scalar value into.

Additional information about encoding time in a string value (includes interactive examples)