Class DiffDays
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.date_time.DiffDays
public class DiffDays
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function DiffDays returns the time difference in days between two dates.
Arguments | Arguments data types | Return data type | Example |
---|---|---|---|
<exp> <exp> | <exp>: date-time | number |
DiffDays(2020-01-01, 2020-01-05) The function returns 4 (days). |
- Author:
- TOP group
-
Method Summary
Modifier and TypeMethodDescriptioncare.smith.top.model.Expression
calculate
(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) static DiffDays
get()
static care.smith.top.model.Expression
of
(care.smith.top.model.Expression... args) static care.smith.top.model.Expression
Methods inherited from class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
getFunction, getFunctionId, getType, maxArgumentNumber, minArgumentNumber, toString, toStringValues
-
Method Details
-
get
-
of
-
of
public static care.smith.top.model.Expression of(care.smith.top.model.Expression... args) -
calculate
public care.smith.top.model.Expression calculate(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) - Specified by:
calculate
in classcare.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
-