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

1.4.0 • Public • Published

time Build Status npm (scoped) Codacy Badge

Simple JavaScript library for parsing, displaying and manipulating date-agnostic time

Installation

Yarn:

yarn add @arutkowski00/time

npm:

npm install --save @arutkowski00/time

Usage

Simply import Time class and use it:

import { Time } from '@arutkowski00/time';

let time = new Time(8, 20); // 08:20
time = Time.fromString("9:40"); // 09:40
time.addMinutes(100); // 11:20
time.setHours(16); // 16:20

For more see documentation

Package Sidebar

Install

npm i @arutkowski00/time

Weekly Downloads

2

Version

1.4.0

License

MIT

Unpacked Size

2.12 MB

Total Files

63

Last publish

Collaborators

  • arutkowski00