1.0.1 • Published 4 years ago

@strong-roots-capital/add-timeframe v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

add-timeframe Build status npm version codecov

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

Related