1.0.1 • Published 4 years ago

@strong-roots-capital/next-session-open v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

next-session-open Build status npm version codecov

Return date of next session-open (inclusive)

Install

npm install @strong-roots-capital/next-session-open

Use

import { nextSessionOpen } from '@strong-roots-capital/next-session-open'

const now = new Date()

console.log(now)
//=>2019-04-15T00:04:34.924Z

console.log(nextSessionOpen('1W', now))
//=>2019-04-22T00:00:00.000Z

Related