Skip to main content

format_timestamp_array

Function format_timestamp_array 

Source
pub fn format_timestamp_array(items: &[Option<i64>], with_tz: bool) -> String
Expand description

v7.37.5 γ — render a TIMESTAMP[] (with_tz=false) or TIMESTAMPTZ[] (with_tz=true) in PG external form. Each non-NULL element is double-quoted because the canonical timestamp text contains a space (2024-06-01 12:00:00) that would otherwise split on commas wrong.