pub fn julianday<'a, V, E>(
expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Double, E::Nullable, E::Aggregate, E::Sources>where
V: SQLParam + 'a,
V::DialectMarker: DialectSupports<SQLiteDateTime>,
E: Expr<'a, V>,
E::SQLType: Temporal,Expand description
A time value as a Julian day number (JULIANDAY), on SQLite.
The argument must be temporal. The result is the dialect’s double type and keeps the argument’s nullability.
§Examples
assert_eq!(julianday(users.created_at).sql(), r#"JULIANDAY ("users"."created_at")"#);