Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

day-seconds

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

day-seconds

Get the number of seconds/milliseconds in a day.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54
decreased by-11.48%
Maintainers
3
Weekly downloads
 
Created
Source

npm mit license build status coverage status

Get the number of seconds/milliseconds in a day.

Install

npm i --save day-seconds
npm test

API

For more use-cases see the tests

daySeconds

Get the number of seconds/milliseconds in a day.

  • [bool] {Boolean} when true, returns seconds, otherwise milliseconds
  • return {Number}

Example:

var daySeconds = require('day-seconds');

daySeconds(false);
//=> 86400000

daySeconds();
//=> 86400000

daySeconds('str');
//=> 86400000

daySeconds([1,2,3]);
//=> 86400000

daySeconds(/regex/gm);
//=> 86400000

daySeconds({});
//=> 86400000

daySeconds(true);
//=> 86400

Author

Charlike Mike Reagent

License MIT license

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


Powered and automated by kdf, March 02, 2015

Keywords

FAQs

Package last updated on 02 Mar 2015

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