Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

strong-roots-capital/get-recent-sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-recent-sessions Build status npm version codecov

Get boundaries between recent timeframes (inclusive)

Install

npm install @strong-roots-capital/get-recent-sessions

Use

import getRecentSessions from '@strong-roots-capital/get-recent-sessions'

console.log(getRecentSessions('8M', new Date('2019-02-14T00:00:00.000Z'))
//=> [ 1514764800000, 1535760000000, 1546300800000 ]

Related