Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 1.08 KB

readme.md

File metadata and controls

26 lines (18 loc) · 1.08 KB

is-open-session Build status npm version codecov

Test to determine if a date falls inside the currently-open session

Install

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

Use

import isOpenSession from '@strong-roots-capital/is-open-session'
isOpenSession(new Date(), '4H')
// => true

isOpenSession(new Date(0), '4H')
// => false

Related