Type Definition ion_c_sys::ION_TIMESTAMP

source · []
pub type ION_TIMESTAMP = _ion_timestamp;
Expand 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

Implementations

Converts the given IonDateTime into this ION_TIMESTAMP.

Converts this ION_TIMESTAMP into a IonDateTime.

Note that this borrows mutably, because all of the underlying ion_timestamp_* functions require a mutable pointer, but this operation does not actually change the value.