S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
SOPC_tm Struct Reference

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
 

Detailed Description

S2OPC equivalent of standard struct tm. Fields use fix-length numerical values.

Field Documentation

◆ year

int16_t SOPC_tm::year

Year value (might be negative)

◆ month

uint8_t SOPC_tm::month

Month value in [1, 12]

◆ day

uint8_t SOPC_tm::day

Day value in [1, 31] and constrained to valid day/month/year dates

◆ hour

uint8_t SOPC_tm::hour

Hour value in [0, 24], minutes and seconds are constrained to 0 when 24

◆ minute

uint8_t SOPC_tm::minute

Minute value in [0, 59]

◆ second

uint8_t SOPC_tm::second

Second value in [0, 59]

◆ secondAndFrac

double SOPC_tm::secondAndFrac

Second value with fraction of seconds

◆ UTC

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

◆ UTC_neg_off

bool SOPC_tm::UTC_neg_off

Negative UTC flag set to true if the provided time offset is negative

◆ UTC_hour_off

uint8_t SOPC_tm::UTC_hour_off

UTC hours offset from UTC if UTC flag is false, 0 otherwise

◆ UTC_min_off

uint8_t SOPC_tm::UTC_min_off

UTC minutes offset from UTC if UTC flag is false, 0 otherwise


The documentation for this struct was generated from the following file: