@strong-roots-capital/is-latest-closed-session
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

is-latest-closed-session Build status npm version codecov

Test to determine if a date falls inside the most-recently closed session

Install

npm install @strong-roots-capital/is-latest-closed-session

Use

import isLatestClosedSession from '@strong-roots-capital/is-latest-closed-session'

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

isLatestClosedSession(new Date(0), '1', new Date(61 * 1000))
//=> true

isLatestClosedSession(new Date(0), 240)
//=>false

isLatestClosedSession(1571871598069, '1')
//=> true

Related

Package Sidebar

Install

npm i @strong-roots-capital/is-latest-closed-session

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

6.56 kB

Total Files

4

Last publish

Collaborators

  • amchelle
  • hamroctopus