currentYear

Current year.

Usage

var currentYear = require( '@stdlib/time/current-year' );

currentYear()

Returns the current year.

var year = currentYear();
// returns <number>

Notes

  • The returned value is an integer.
  • The year is based on the local time zone.

Examples

var currentYear = require( '@stdlib/time/current-year' );

var year = currentYear();
// returns <number>

CLI

Usage

Usage: current-year [options]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.

Examples

$ current-year
<number>
Did you find this page helpful?