Contents

Roo

DateTime.year

Returns the year of this DateTime object as an integer Number.

var xmas_2017 = DateTime(1514194200) # Mon Dec 25th 2017.
print(xmas_2017.year) # 2017