def _coerce_timestamp(value): if isinstance(value, arrow.Arrow): return value.float_timestamp return float(value)