Main MRPT website > C++ reference for MRPT 1.5.7
xsutctime.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #ifndef XSUTCTIME_H
10 #define XSUTCTIME_H
11 
12 #include "pstdint.h"
13 
14 /*! \brief A structure for storing UTC Time values. */
15 struct XsUtcTime {
16  uint32_t m_nano; //!< \brief Nanosecond part of the time
17  uint16_t m_year; //!< \brief The year (if date is valid)
18  uint8_t m_month; //!< \brief The month (if date is valid)
19  uint8_t m_day; //!< \brief The day of the month (if date is valid)
20  uint8_t m_hour; //!< \brief The hour (if time is valid)
21  uint8_t m_minute; //!< \brief The minute (if time is valid)
22  uint8_t m_second; //!< \brief The second (if time is valid)
23  uint8_t m_valid; //!< \brief Validity indicator \details When set to 1, the time is valid, when set to 2, the time part is valid, but the date may not be valid. when set to 0, the time is invalid and should be ignored.
24 };
25 typedef struct XsUtcTime XsUtcTime;
26 
27 #endif // file guard
unsigned __int16 uint16_t
Definition: rptypes.h:46
uint8_t m_day
The day of the month (if date is valid)
Definition: xsutctime.h:19
uint16_t m_year
The year (if date is valid)
Definition: xsutctime.h:17
uint8_t m_minute
The minute (if time is valid)
Definition: xsutctime.h:21
uint32_t m_nano
Nanosecond part of the time.
Definition: xsutctime.h:16
unsigned char uint8_t
Definition: rptypes.h:43
uint8_t m_valid
Validity indicator.
Definition: xsutctime.h:23
uint8_t m_hour
The hour (if time is valid)
Definition: xsutctime.h:20
A structure for storing UTC Time values.
Definition: xsutctime.h:15
uint8_t m_month
The month (if date is valid)
Definition: xsutctime.h:18
unsigned __int32 uint32_t
Definition: rptypes.h:49
uint8_t m_second
The second (if time is valid)
Definition: xsutctime.h:22



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019