Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
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.