1.0.0 • Published 3 years ago

stringtime-love v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

stringtime-love

Small package for working with time strings (a.k.a "13:00, 13:15 etc").

installation

npm i stringtime-love

example usage

import { Time } from "stringtime-love"

const time = new Time("13:00")

time.changeInMinutes(30).toString() // => 13:30
time.changeInMinutes(60 * 23).toString() // => 12:00
time.changeInMinutes(-30).toString() // => 12:30