@strong-roots-capital/next-session-open
v1.0.1
Published
Return date of next session-open (inclusive)
Downloads
4
Readme
next-session-open
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