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('2019-12-12T01:11:00Z'), 4))

Returns true.

inLastHours(@{MyEvent.timestamp}, 4)

Returns true.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now