@bizhermit/time
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Time

time object.

Module

Install

npm i @bizhermit/time

Example

import Time, { TimeUtils } from "@bizhermit/time";

const time = new Time();

const average = TimeUtils.average(
    new Time("4:31"),
    new Time("02:03:04"),
    new Time("36:12:40.423"),
    new Time(time),
    new Time(new Date()),
);

console.log(average.format("hh:mm:ss.SSS"));

/@bizhermit/time/

    Package Sidebar

    Install

    npm i @bizhermit/time

    Weekly Downloads

    3

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    7.68 kB

    Total Files

    5

    Last publish

    Collaborators

    • bizhermit