S2OPC OPCUA Toolkit
|
S2OPC equivalent of standard struct tm. Fields use fix-length numerical values. More...
#include <sopc_date_time.h>
Data Fields | |
int16_t | year |
uint8_t | month |
uint8_t | day |
uint8_t | hour |
uint8_t | minute |
uint8_t | second |
double | secondAndFrac |
bool | UTC |
bool | UTC_neg_off |
uint8_t | UTC_hour_off |
uint8_t | UTC_min_off |
S2OPC equivalent of standard struct tm. Fields use fix-length numerical values.
int16_t SOPC_tm::year |
Year value (might be negative)
uint8_t SOPC_tm::month |
Month value in [1, 12]
uint8_t SOPC_tm::day |
Day value in [1, 31] and constrained to valid day/month/year dates
uint8_t SOPC_tm::hour |
Hour value in [0, 24], minutes and seconds are constrained to 0 when 24
uint8_t SOPC_tm::minute |
Minute value in [0, 59]
uint8_t SOPC_tm::second |
Second value in [0, 59]
double SOPC_tm::secondAndFrac |
Second value with fraction of seconds
bool SOPC_tm::UTC |
UTC flag set to true if the provided time is UTC (or not specified) and false if UTC with an offset. Flag is still set true for +/-00:00 offsets
bool SOPC_tm::UTC_neg_off |
Negative UTC flag set to true if the provided time offset is negative
uint8_t SOPC_tm::UTC_hour_off |
UTC hours offset from UTC if UTC flag is false, 0 otherwise
uint8_t SOPC_tm::UTC_min_off |
UTC minutes offset from UTC if UTC flag is false, 0 otherwise