@strong-roots-capital/add-timeframe
v1.0.1
Published
Increment date by timeframe
Downloads
5
Readme
add-timeframe
Increment date by timeframe
Install
npm install @strong-roots-capital/add-timeframe
Use
import { addTimeframe } from '@strong-roots-capital/add-timeframe'
const date = new Date()
console.log(date)
//=>2019-04-14T23:57:54.654Z
console.log(addTimeframe('4H', date))
//=>2019-04-15T03:57:54.654Z