@arutkowski00/time
v1.4.0
Published
Utilities & tools for time-related stuff
Downloads
24
Maintainers
Readme
time
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