Skip to main content

timestamp_parameter

Function timestamp_parameter 

Source
fn timestamp_parameter(
    ts: Option<DateTime<Utc>>,
    server_type: Option<&ConcreteDataType>,
    client_type: &Type,
) -> PgWireResult<ScalarValue>
Expand description

Converts a timestamp parameter to the unit of its server column, or to milliseconds when the column type is unknown.