year

WebJar for year

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

year
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

year
WebJar for year
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/datetime/year

Download year

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/year/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>year</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/year/
implementation 'org.webjars.npm:year:0.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/year/
implementation ("org.webjars.npm:year:0.2.1")
'org.webjars.npm:year:jar:0.2.1'
<dependency org="org.webjars.npm" name="year" rev="0.2.1">
  <artifact name="year" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='year', version='0.2.1')
)
libraryDependencies += "org.webjars.npm" % "year" % "0.2.1"
[org.webjars.npm/year "0.2.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

org.webjars.npm

Date & Time

Community-driven and maintained collection of JavaScript date and time utilities.

Versions

Version
0.2.1