Skip to content

Releases: rodrigogs/kairos

Decreased install size from 4.29MB to 115kB

24 Nov 16:58
Compare
Choose a tag to compare

Fixed escaping chars in the time pattern

10 Jul 16:51
Compare
Choose a tag to compare
v2.1.1

Fixed escaping chars in the time pattern

Added escape character

05 Jun 17:55
Compare
Choose a tag to compare

Now you're able to escape any character from your pattern using \ character.

Ex.:

const Kairos = require('kairos');

const time = Kairos.new('15:30:28', 'hh:mm:ss').toString('\\hh:mm:\\ss');

console.log(time); // 'h5:30:s8'

Small code cleaning

17 Oct 18:07
Compare
Choose a tag to compare
v2.0.2

Updated dependencies / Small code cleaning

A few code smells removed

01 Sep 19:17
Compare
Choose a tag to compare
v2.0.1

Updated build, removed code smells

v2.0.0: Merge pull request #2 from rodrigogs/2.0

28 Mar 15:51
Compare
Choose a tag to compare

Documentation will be released soon in a new website.

Release 1.1.0

11 Jan 10:25
Compare
Choose a tag to compare

Added a new function Kairos.with()

Now you can do the following:

let time = Kairos.with('01:00').plus('05:00').divide(2);
console.log(time.toExpression()); // 03:00

Release 1.0.0

09 Jan 22:35
Compare
Choose a tag to compare

Manipulating a Gnomon instance now returns itself in each operation, so you can now waterfall through operations:

const Kairos = require('kairos').Gnomon;

let time = new Kairos('01:00').minus('00:30').divide(2).setHours(3);
console.log(time.toExpression()); // 03:15

Release v0.9.0

09 Dec 11:14
Compare
Choose a tag to compare

Fixed bug when dividing a large number by 3 <, causing a invalid number due to its size.

Created a simple usecase example.