@strong-roots-capital/add-timeframe
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @strong-roots-capital/add-timeframe

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

5.61 kB

Total Files

4

Last publish

Collaborators

  • amchelle
  • hamroctopus