Function to_timestamp
Source pub fn to_timestamp<'a, V, E>(
expr: E,
) -> SQLExpr<'a, V, Timestamp, E::Nullable, Scalar>
Expand description
TO_TIMESTAMP - converts a Unix timestamp to a timestamp (PostgreSQL).
Returns Timestamp type. The input should be a numeric Unix timestamp.
§Example
ⓘuse drizzle_core::expr::to_timestamp;
let ts = to_timestamp(users.created_unix);