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

strong-roots-capital/is-open-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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