stringtime-love
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

/stringtime-love/

    Package Sidebar

    Install

    npm i stringtime-love

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    16.1 kB

    Total Files

    14

    Last publish

    Collaborators

    • lenverstijnen