Home >>C Time Library Function

C Time Library Function

C Library - <time.h>

FUNCTION DESCRIPTION
asctime() It returns a pointer to a string that represents the day and time of the structure timeptr.
clock() It returns the processor clock time used since the beginning of an implementation-defined era.
ctime() It returns a string representing the localtime based on the argument timer.
difftime() It returns the difference of seconds between time1 and time2.
gmtime() It converts the value of timer into the structure tm and expressed in Coordinated Universal Time (UTC).
localtime() It converts the value of timer into the structure tm and expressed in the local time zone.
mktime() It converts the structure pointed to by timeptr into a time_t value according to the local time zone.
strftime() It formats the time represented in the structure timeptr according to the formatting rules defined in format and stored into str.
time() It calculates the current calendar time and encodes it into time_t format.

C Time Library Function Index

Sr.No. Topics
1 C asctime() function
2 C time clock() function
3 C ctime() function
4 C difftime() function
5 C gmtime() function
6 C localtime() function
7 C mktime() function
8 C strftime() function
9 C time() function