fn optional_or_localtime(secs: OptionalArg<Either<f64, i64>>) -> NaiveDateTime {
    let default = chrono::offset::Local::now().naive_local();
    match secs {
        OptionalArg::Present(secs) => pyobj_to_naive_date_time(secs),
        OptionalArg::Missing => default,
    }
}
/// Construct a localtime from the optional seconds, or get the current local time.
Construct a localtime from the optional seconds, or get the current local time.
Construct a localtime from the optional seconds or get the current local time .
fn optional_or_localtime(secs: OptionalArg<Either<f64, i64>>) -> NaiveDateTime {
    let default = chrono::offset::Local::now().naive_local();
    match secs {
        OptionalArg::Present(secs) => pyobj_to_naive_date_time(secs),
        OptionalArg::Missing => default,
    }
}
fn optional_or_localtime ( secs : OptionalArg < Either < f64 , i64 > > ) -> NaiveDateTime { let default = chrono :: offset :: Local :: now ( ) . naive_local ( ) ; match secs { OptionalArg :: Present ( secs ) => pyobj_to_naive_date_time ( secs ) , OptionalArg :: Missing => default , } }
Construct a localtime from the optional seconds, or get the current local time.
Construct a localtime from the optional seconds or get the current local time .
secs
OptionalArg<Either<f64, i64>>