AgeOff

See javadoc - uk.gov.gchq.koryphe.impl.predicate.AgeOff

Available since Koryphe version 1.0.0

Checks if a timestamp is recent based on a provided age off time

Examples

Age off in milliseconds

Java
JSON
Full JSON
Python
final AgeOff function = new AgeOff(100000L);
{
  "class" : "AgeOff",
  "ageOffTime" : 100000
}
{
  "class" : "uk.gov.gchq.koryphe.impl.predicate.AgeOff",
  "ageOffTime" : 100000
}
g.AgeOff( 
  age_off_time=100000 
)

Input type:

java.lang.Long

Example inputs:

Input TypeInputResult
java.lang.StringClassCastException: java.lang.String cannot be cast to java.lang.Long
java.lang.Long1665484733203true
java.lang.Long1665484633203false
java.lang.Long1665484833203true
java.lang.String1665484733203ClassCastException: java.lang.String cannot be cast to java.lang.Long

results matching ""

    No results matching ""