1.0.0 • Published 7 years ago
@strong-roots-capital/subtract-timeframe v1.0.0
subtract-timeframe

Decrement date by timeframe
Install
npm install @strong-roots-capital/subtract-timeframeUse
import subtractTimeframe from '@strong-roots-capital/subtract-timeframe'
const date = new Date()
console.log(date)
//=>2019-04-15T03:57:54.654Z
console.log(subtractTimeframe('4H', date))
//=>2019-04-14T23:57:54.654ZRelated
1.0.0
7 years ago