Skip to main content

julianday

Function julianday 

Source
pub fn julianday<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Double, E::Nullable, E::Aggregate, E::Sources>
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")"#);