Function ion_c_sys::ion_timestamp_for_fraction
source · pub unsafe extern "C" fn ion_timestamp_for_fraction(
ptime: *mut ION_TIMESTAMP,
year: c_int,
month: c_int,
day: c_int,
hours: c_int,
minutes: c_int,
seconds: c_int,
p_fraction: *mut decQuad,
pcontext: *mut decContext
) -> iERR
Expand description
Initialize ION_TIMESTAMP object with value specified. *p_fraction have a range of (0, 1), not including 0 (without significant digit) and 1. 0.0 (0d-1), 0.00(0d-2) is valid, while 0 or 0. is not.
It will have ION_TS_FRAC precision
Local time zone will be cleared. ion_timestamp_has_local_offset will be false, and ion_timestamp_get_local_offset will be zero.