C Date and Time Functions - Overview of Functions

Overview of Functions

The C date and time operations are defined in the time.h header file (ctime header in C++).

Identifier Description
difftime computes the difference between times
time returns the current time of the system as time since the epoch (which is usually the Unix epoch)
clock returns a processor tick count associated with the process
asctime converts a tm object to a textual representation
ctime converts a time_t object to a textual representation
strftime converts a tm object to custom textual representation
wcsftime converts a tm object to custom wide string textual representation
gmtime converts time since the epoch to calendar time expressed as Universal Coordinated Time
localtime converts time since the epoch to calendar time expressed as local time
mktime converts calendar time to time since the epoch
Constants CLOCKS_PER_SEC number of processor clock ticks per second
Types tm calendar time type
time_t time since the epoch type
clock_t process running time type

Read more about this topic:  C Date And Time Functions

Other articles related to "overview of functions, functions, function":

C Localization Functions - Overview of Functions
... C localization functions and types are defined in locale.h (clocale header in C++) ... Function Description setlocale sets and gets the current C locale localeconv returns numeric and monetary formatting details of the current locale ...

Famous quotes containing the word functions:

    Adolescents, for all their self-involvement, are emerging from the self-centeredness of childhood. Their perception of other people has more depth. They are better equipped at appreciating others’ reasons for action, or the basis of others’ emotions. But this maturity functions in a piecemeal fashion. They show more understanding of their friends, but not of their teachers.
    Terri Apter (20th century)