Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

year-seconds

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

year-seconds

Get the number of seconds/milliseconds in leap/noleap year.

Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

year-seconds NPM version Build Status Dependency Status

Get the number of seconds/milliseconds in leap/noleap year.

Install Nodei.co stats

Install with npm

$ npm install year-seconds

Usage

var yearSeconds = require('year-seconds');

yearSeconds()
//=> 31536000 seconds

yearSeconds(true)
//=> 31536000000 milliseconds

yearSeconds(2015)
//=> 31536000 seconds

yearSeconds(2015, true)
//=> 31536000000 milliseconds

yearSeconds(2016)
//=> 31622400 seconds

yearSeconds(2016, true)
//=> 31622400000 milliseconds

Tests

As usual npm test or if you have mocha globally mocha

$ npm test

API

yearSeconds([year[, ms]])

year

Type: number
Default: current year

ms

Type: boolean
Default: false

Authors & Contributors author tips

Charlike Mike Reagent

License MIT license

Copyright (c) 2014 Charlike Mike Reagent, contributors.
Released under the MIT license.

Keywords

year

FAQs

Package last updated on 27 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts