msp430_common/include/time.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 INRIA
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef TIME_H
21 #define TIME_H
22 
23 #include <sys/types.h>
24 #include "msp430_types.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
33 struct tm {
34  int tm_sec;
35  int tm_min;
36  int tm_hour;
37  int tm_mday;
38  int tm_mon;
39  int tm_year;
40  int tm_wday;
41  int tm_yday;
42  int tm_isdst;
44 };
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* TIME_H */
51 
int tm_min
Minutes after the hour [0, 59].
int tm_mday
Day of the month [1, 31].
int tm_year
Years since 1900.
basic types for MSP430
int tm_mon
Months since January [0, 11].
Datatype to represent time.
int tm_wday
Days since Sunday [0, 6].
int tm_yday
Days since January 1st [0, 365].
int tm_sec
Seconds after the minute [0, 60].
int tm_hour
Hours since midnight [0, 23].
int tm_isdst
Daylight saving time is in effect (positive if true, 0 if not, negative if n/a)