pub(crate) fn timestamp_value(array: &ArrayRef, idx: usize) -> i64
Gets the timestamp value from the timestamp array.
Panics if the array is not a timestamp array or the index is out of bound.