OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [time/] [time.tex] - Blame information for rev 171

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
@node Timefns
2
@chapter Time Functions (@file{time.h})
3
 
4
This chapter groups functions used either for reporting on time
5
(elapsed, current, or compute time) or to perform calculations based
6
on time.
7
 
8
The header file @file{time.h} defines three types.  @code{clock_t} and
9
@code{time_t} are both used for representations of time particularly
10
suitable for arithmetic.  (In this implementation, quantities of type
11
@code{clock_t} have the highest resolution possible on your machine,
12
and quantities of type @code{time_t} resolve to seconds.)  @code{size_t}
13
is also defined if necessary for quantities representing sizes.
14
 
15
@file{time.h} also defines the structure @code{tm} for the traditional
16
representation of Gregorian calendar time as a series of numbers, with
17
the following fields:
18
 
19
@table @code
20
@item tm_sec
21
Seconds, between 0 and 60 inclusive (60 allows for leap seconds).
22
 
23
@item tm_min
24
Minutes, between 0 and 59 inclusive.
25
 
26
@item tm_hour
27
Hours, between 0 and 23 inclusive.
28
 
29
@item tm_mday
30
Day of the month, between 1 and 31 inclusive.
31
 
32
@item tm_mon
33
Month, between 0 (January) and 11 (December).
34
 
35
@item tm_year
36
Year (since 1900), can be negative for earlier years.
37
 
38
@item tm_wday
39
Day of week, between 0 (Sunday) and 6 (Saturday).
40
 
41
@item tm_yday
42
Number of days elapsed since last January 1, between 0 and 365 inclusive.
43
 
44
@item tm_isdst
45
Daylight Savings Time flag: positive means DST in effect, zero means DST
46
not in effect, negative means no information about DST is available.
47
@end table
48
 
49
@menu
50
* asctime::     Format time as string
51
* clock::       Cumulative processor time
52
* ctime::       Convert time to local and format as string
53
* difftime::    Subtract two times
54
* gmtime::      Convert time to UTC (GMT) traditional representation
55
* localtime::   Convert time to local representation
56
* mktime::      Convert time to arithmetic representation
57
* strftime::    Flexible calendar time formatter
58
* time::        Get current calendar time (as single number)
59
* __tz_lock::   Lock time zone global variables
60
* tzset::       Set timezone info
61
@end menu
62
 
63
@page
64
@include time/asctime.def
65
 
66
@page
67
@include time/clock.def
68
 
69
@page
70
@include time/ctime.def
71
 
72
@page
73
@include time/difftime.def
74
 
75
@page
76
@include time/gmtime.def
77
 
78
@page
79
@include time/lcltime.def
80
 
81
@page
82
@include time/mktime.def
83
 
84
@page
85
@include time/strftime.def
86
 
87
@page
88
@include time/time.def
89
 
90
@page
91
@include time/tzlock.def
92
 
93
@page
94
@include time/tzset.def

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.