TacOS
0.2
Page principale
Structures de données
Fichiers
Liste des fichiers
Variables globale
Tout
Structures de données
Fichiers
Fonctions
Variables
Définitions de type
Énumérations
Macros
libc
include
time.h
Aller à la documentation de ce fichier.
1
29
#ifndef _TIME_H_
30
#define _TIME_H_
31
32
#include <
sys/cdefs.h
>
33
34
__BEGIN_DECLS
35
36
#include <
sys/types.h
>
37
38
struct
timeval
{
39
long
int
tv_sec
;
40
long
int
tv_usec
;
41
};
42
43
struct
timespec
{
44
long
int
tv_sec
;
45
long
int
tv_nsec
;
46
};
47
48
typedef
long
int
clock_t
;
49
typedef
long
int
time_t
;
51
struct
tm
{
52
int
tm_sec
;
53
int
tm_min
;
54
int
tm_hour
;
55
int
tm_mday
;
56
int
tm_mon
;
57
int
tm_year
;
58
int
tm_wday
;
59
int
tm_yday
;
60
int
tm_isdst
;
61
};
62
63
clock_t clock(
void
);
64
65
double
difftime(time_t time1, time_t time0);
66
67
time_t mktime(
struct
tm
*timeptr);
68
69
time_t time(time_t *timer);
70
71
char
*asctime(
const
struct
tm
*timeptr);
72
73
char
*ctime(
const
time_t *timer);
74
75
struct
tm
*gmtime(
const
time_t *timer);
76
77
struct
tm
*localtime(
const
time_t *timer);
78
79
/* NOT IMPLEMENTED
80
size_t strftime(char * s,
81
size_t maxsize,
82
const char * format,
83
const struct tm * timeptr);
84
*/
85
86
__END_DECLS
87
88
#endif //_TIME_H_
tm::tm_min
int tm_min
Definition:
clock.h:59
types.h
time_t
long int time_t
Definition:
time.h:49
tm::tm_mday
int tm_mday
Definition:
clock.h:61
timespec::tv_nsec
long int tv_nsec
Definition:
clock.h:51
tm::tm_year
int tm_year
Definition:
clock.h:63
timeval::tv_usec
long int tv_usec
Definition:
clock.h:43
tm::tm_mon
int tm_mon
Definition:
clock.h:62
timeval::tv_sec
long int tv_sec
Definition:
clock.h:42
timeval
Definition:
clock.h:41
timespec::tv_sec
long int tv_sec
Definition:
clock.h:50
tm
Definition:
clock.h:57
tm::tm_wday
int tm_wday
Definition:
clock.h:64
tm::tm_yday
int tm_yday
Definition:
clock.h:65
cdefs.h
timespec
Definition:
clock.h:49
tm::tm_sec
int tm_sec
Definition:
clock.h:58
clock_t
long int clock_t
Definition:
time.h:48
tm::tm_hour
int tm_hour
Definition:
clock.h:60
tm::tm_isdst
int tm_isdst
Definition:
clock.h:66
Généré le Samedi 3 Janvier 2015 13:22:30 pour TacOS par
1.8.7