inLastHours inLastHours

Returns true if the given date time is between now and now - delta hours.

Category

Date

Function syntax

inLastHours(<dateTime>,<delta>)

Parameters

Parameter
Type
date time
dateTime
delta
integer

Signatures and returned type

inLastHours(<dateTime>,<integer>)

Returns a boolean.

Examples

inLastHours(toDateTime('2023-12-12T01:11:00Z'), 4)

Returns true.

inLastHours(@event{MyEvent.timestamp}, 4)

Returns true.

recommendation-more-help
8fe209f2-717b-4d36-904c-71a9532007af