C date and time functions

The C date and time functions are a group of functions in the standard library of the C programming language implementing date and time manipulation operations.

Its date system command includes various formatting options.

[2][3] In 1989, the ANSI C standard is released including strftime and other date and time functions.

The timespec and related types were originally proposed by Markus Kuhn to provide a variety of time bases, but only TIME_UTC was accepted.

The following C source code prints the current time to the standard output stream.