1.4.0 • Published 5 years ago

@arutkowski00/time v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2-beta1

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago