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

coming-time

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

coming-time

Get next time {hour, second, minute} with timezone

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

coming-time

codecov GitHub CI Top language npm package

Get coming time after input with hour, minutes, second

Install

$ npm install coming-time

Usage

const comingTime = require('coming-time');

comingTime({ hour: 3, minutes: 3 }, 7)(new Date('Nov 13 2020 03:03:00 GMT+0700'))
//=> 2020-11-13T20:03:00.000Z
comingTime(new Date(), 7)(new Date('Nov 13 2020 03:03:00 GMT+0700'))
//=> 2020-11-13T15:20:54.000Z
comingTime('12:20:12', 7)(new Date('Nov 13 2020 03:03:00 GMT+0700'))
//=> 2020-11-13T05:20:12.000Z

API

comingTime(timeInfo, timezone?)(input?)

Return coming time after input with hour, minutes, seconds form timeInfo

timeInfo

Type: String | Date | Object

String format: 'hh:mm:ss' (mm and ss may be empty, example: 1, 1:01) Date: valid date, we get only hour, minute and second Object: hour, minutes and seconds key

timezone

Type: Number

time zone to get time

input

Type: Date

We get coming time after input

Keywords

FAQs

Package last updated on 15 Nov 2020

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