cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : C Library : ctime
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
C Library
cassert (assert.h)
cctype (ctype.h)
cerrno (errno.h)
cfloat (float.h)
climits (limits.h)
clocale (locale.h)
cmath (math.h)
csetjmp (setjmp.h)
csignal (signal.h)
cstdarg (stdarg.h)
cstddef (stddef.h)
cstdio (stdio.h)
cstdlib (stdlib.h)
cstring (string.h)
ctime (time.h)
ctime (time.h)
functions:
· asctime
· clock
· ctime
· difftime
· gmtime
· localtime
· mktime
· strftime
· time
macros:
· CLOCKS_PER_SEC
· NULL
types:
· clock_t
· size_t
· time_t
· struct tm

-

ctime (time.h) header

C Time Library

This header file contains definitions of functions to get and manipulate date and time information.

Functions

Time manipulation
clock Clock program (function)
difftime Return difference between two times (function)
mktime Convert tm structure to time_t (function)
time Get current time (function)

Conversion:

asctime Convert tm structure to string (function)
ctime Convert time_t value to string (function)
gmtime Convert time_t to tm as UTC time (function)
localtime Convert time_t to tm as local time (function)
strftime Format time to string (function)

Macros

CLOCKS_PER_SEC Clock ticks per second (macro)
NULL Null pointer (macro)

types

clock_t Clock type (type)
size_t Unsigned integral type (type)
time_t Time type (type)
struct tm Time structure (type)

© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us