QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
nmeatime.h
Go to the documentation of this file.
1 /*
2 * Copyright Tim (xtimor@gmail.com)
3 *
4 * NMEA library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>
16 */
17 /*
18  *
19  * NMEA library
20  * URL: http://nmea.sourceforge.net
21  * Author: Tim (xtimor@gmail.com)
22  * Licence: http://www.gnu.org/licenses/lgpl.html
23  * $Id: time.h 4 2007-08-27 13:11:03Z xtimor $
24  *
25  */
26 
29 #ifndef __NMEA_TIME_H__
30 #define __NMEA_TIME_H__
31 
32 #include "config.h"
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
43  typedef struct _nmeaTIME
44  {
45  int year;
46  int mon;
47  int day;
48  int hour;
49  int min;
50  int sec;
51  int msec;
53  } nmeaTIME;
54 
58  void nmea_time_now( nmeaTIME *t );
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* __NMEA_TIME_H__ */
int hour
Hours since midnight - [0,23].
Definition: nmeatime.h:48
int mon
Months since January - [0,11].
Definition: nmeatime.h:46
int year
Years since 1900.
Definition: nmeatime.h:45
int day
Day of the month - [1,31].
Definition: nmeatime.h:47
Date and time data.
Definition: nmeatime.h:43
struct _nmeaTIME nmeaTIME
Date and time data.
int sec
Seconds after the minute - [0,59].
Definition: nmeatime.h:50
void nmea_time_now(nmeaTIME *t)
Get time now to nmeaTIME structure.
int msec
Thousandths part of second - [0,999].
Definition: nmeatime.h:51
int min
Minutes after the hour - [0,59].
Definition: nmeatime.h:49