Releases: rodrigogs/kairos
Releases · rodrigogs/kairos
Decreased install size from 4.29MB to 115kB
Fixed escaping chars in the time pattern
v2.1.1 Fixed escaping chars in the time pattern
Added escape character
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
v2.0.2 Updated dependencies / Small code cleaning
A few code smells removed
v2.0.1 Updated build, removed code smells
v2.0.0: Merge pull request #2 from rodrigogs/2.0
Documentation will be released soon in a new website.
Release 1.1.0
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
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
Fixed bug when dividing a large number by 3 <, causing a invalid number due to its size.
Created a simple usecase example.