| www.delorie.com/gnu/docs/glibc/libc_432.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This section describes facilities for keeping track of calendar time. See section 21.1 Time Basics.
The GNU C library represents calendar time three ways:
time_t data type) is a compact
representation, typically giving the number of seconds of elapsed time
since some implementation-specific base time.
struct
timeval data type, which includes fractions of a second. Use this time
representation instead of simple time when you need greater precision.
struct tm data
type) represents a calendar time as a set of components specifying the
year, month, and so on in the Gregorian calendar, for a specific time
zone. This calendar time representation is usually used only to
communicate with people.
21.4.1 Simple Calendar Time Facilities for manipulating calendar time. 21.4.2 High-Resolution Calendar A time representation with greater precision. 21.4.3 Broken-down Time Facilities for manipulating local time. 21.4.4 High Accuracy Clock Maintaining a high accuracy system clock. 21.4.5 Formatting Calendar Time Converting times to strings. 21.4.6 Convert textual time and date information back Convert textual time and date information back into broken-down time values. 21.4.7 Specifying the Time Zone with TZHow users specify the time zone. 21.4.8 Functions and Variables for Time Zones Functions to examine or specify the time zone. 21.4.9 Time Functions Example An example program showing use of some of the time functions.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |