Test to determine if a date falls inside the currently-open session
npm install @strong-roots-capital/is-open-session
import isOpenSession from '@strong-roots-capital/is-open-session'
isOpenSession(new Date(), '4H')
// => true
isOpenSession(new Date(0), '4H')
// => false