pub fn scalar_value_to_timestamp(
scalar: &ScalarValue,
timezone: Option<&Timezone>,
) -> Option<Timestamp>
Expand description
Convert [ScalarValue
] to [Timestamp
].
If it’s ScalarValue::Utf8
, try to parse it with the given timezone.
Return None
if given scalar value cannot be converted to a valid timestamp.