Ion C
C library for Ion
_ion_timestamp Struct Reference

#include <ion_timestamp.h>

Data Fields

uint8_t precision
 
int16_t tz_offset
 
uint16_t year
 
uint16_t month
 
uint16_t day
 
uint16_t hours
 
uint16_t minutes
 
uint16_t seconds
 
decQuad fraction
 

Detailed Description

Structure to store time information. time_t only has up to second precision, and time zone support is OS dependent. _ion_timestamp uses decimal to store fraction of a second

Field Documentation

◆ fraction

decQuad _ion_timestamp::fraction

Fraction of a second, e.g: 0.5, 0.01, etc

◆ precision

uint8_t _ion_timestamp::precision

Defined as ION_TS_YEAR, ION_TS_MONTH, ION_TS_DAY, ION_TS_MIN, ION_TS_SEC, ION_TS_FRAC

◆ tz_offset

int16_t _ion_timestamp::tz_offset

Time zone offset (+/- 24 hours), in term of minutes.


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