Skip to main content

time

Function time 

Source
pub fn time<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Time, E::Nullable, E::Aggregate, E::Sources>
Expand description

The time part of a time value (TIME), on SQLite.

The argument must be temporal. The result is the dialect’s time type and keeps the argument’s nullability.

§Examples

assert_eq!(time(users.created_at).sql(), r#"TIME ("users"."created_at")"#);