DateTime.year()

Returns year of the specified date
DateTime.year(time:int)

Parameters

Name Type Действие Значение по умолчанию
time int Time in Unix timestamp

Return value

Year of the specified date. The returned value can be within the range of 1970 to 3000.

Description

Used in the method onUpdate

Example

let y = DateTime.year(Current.Time);