New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

date-unit-ms

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-unit-ms

Millisecond conversions for common date units (seconds, minutes, hours etc).

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

date-unit-ms PayPal Version Downloads Get help on Codementor

Millisecond conversions for common date units (seconds, minutes, hours etc).

Installation

$ npm i --save date-unit-ms

Example

const dateUnitMs = require("date-unit-ms");

console.log(dateUnitMs.ms);
// => 1

console.log(dateUnitMs.second);
// => 1000

console.log(dateUnitMs.minute);
// => 60000

console.log(dateUnitMs.hour);
// => 360000

console.log(dateUnitMs.day);
// => 86400000

console.log(dateUnitMs.week);
// => 604800000

Documentation

The library exports an object containing the number of milliseconds for the following date units:

  • ms
  • second
  • minute
  • hour
  • day
  • week

How to contribute

Have an idea? Found a bug? See how to contribute.

Where is this library used?

If you are using this library in one of your projects, add it in this list. :sparkles:

License

MIT © Ionică Bizău

Keywords

FAQs

Package last updated on 14 Jan 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc