Function ion_c_sys::ion_timestamp_set_local_offset[][src]

pub unsafe extern "C" fn ion_timestamp_set_local_offset(
    ptime: *mut ION_TIMESTAMP,
    offset_minutes: c_int
) -> iERR

Changes the local offset of a timestamp. If the timestamp has less than minute precision, the given offset is ignored and the timestamp is unchanged. If the timestamp is changed, ion_timestamp_has_local_offset will be true, and ion_timestamp_get_local_offset will be the given offset.

@param ptime the timestamp to alter. @param offset_minutes the new local offset, in (positive or negative) minutes from GMT.

@return IERR_INVALID_ARG if ptime is null, or if offset_minutes is outside the range -23:59 to +23:59.