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 Type | Input | Result |
---|---|---|
java.lang.String | ClassCastException: java.lang.String cannot be cast to java.lang.Long | |
java.lang.Long | 1665484733203 | true |
java.lang.Long | 1665484633203 | false |
java.lang.Long | 1665484833203 | true |
java.lang.String | 1665484733203 | ClassCastException: java.lang.String cannot be cast to java.lang.Long |