Skip to content
/ year Public

Simple utility to get the current year with 2 or 4 digits.

License

Notifications You must be signed in to change notification settings

datetime/year

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

year NPM version

Simple utility to get the current year with 2 or 4 digits.

Install with npm

npm i year --save

Usage

var year = require('year');

console.log(year());
//=> 2014
console.log(year('yyyy'));
//=> 2014
console.log(year('yy'));
//=> 14

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on December 01, 2014.

About

Simple utility to get the current year with 2 or 4 digits.

Resources

License

Stars

Watchers

Forks

Packages

No packages published