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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [time/] [time.tex] - Blame information for rev 1774

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

Line No. Rev Author Line
1 39 lampret
@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.
22
 
23
@item tm_min
24
Minutes.
25
 
26
@item tm_hour
27
Hours.
28
 
29
@item tm_mday
30
Day.
31
 
32
@item tm_mon
33
Month.
34
 
35
@item tm_year
36
Year (since 1900).
37
 
38
@item tm_wday
39
Day of week: the number of days since Sunday.
40
 
41
@item tm_yday
42
Number of days elapsed since last January 1.
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
@end menu
60
 
61
@page
62
@include time/asctime.def
63
 
64
@page
65
@include time/clock.def
66
 
67
@page
68
@include time/ctime.def
69
 
70
@page
71
@include time/difftime.def
72
 
73
@page
74
@include time/gmtime.def
75
 
76
@page
77
@include time/lcltime.def
78
 
79
@page
80
@include time/mktime.def
81
 
82
@page
83
@include time/strftime.def
84
 
85
@page
86
@include time/time.def

powered by: WebSVN 2.1.0

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