New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

timefunctions

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timefunctions

Collection of time functions

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

time functions

Returns different timespans in milliseconds.

Examples

var time = require('timefunctions');
time.seconds(60);
// 60000
time.minutes(60);
// 3600000
time.hours(24);
// 86400000
time.days(30);
// 2592000000
time.weeks(4);
// 2419200000
time.months(12);
// 31104000000
time.years(30);
// 946080000000
time.decades(2);
// 630720000000
time.centuries(5);
// 15768000000000
time.millennia(1000);
// 31536000000000000
time.fortnights(100);
// 120960000000

FAQs

Package last updated on 25 Mar 2016

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