Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 309 Bytes

14-year.md

File metadata and controls

16 lines (12 loc) · 309 Bytes
title version signature
Year
1.0.0
moment().year(Number); moment().year(); // Number moment().years(Number); moment().years(); // Number

Gets or sets the year.

Accepts numbers from -270,000 to 270,000.

2.6.0 deprecated using moment().years(). Use moment().year() instead.