inLastYears

如果指定的date或dateTime介於現在和現在- delta年,則傳回true。

類別

日期

函式語法

inLastYears(<dateTime>,<delta>)

參數

參數 類型
日期時間 dateTime
δ 整數

簽名和傳回類型

inLastYears(<dateTime>,<integer>)

傳回布林值。

範例

inLastYears(toDateTime('2010-12-12T01:11:00Z'), 4))

傳回true。

本頁內容

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