From 055b867a534e149f8b6973ee3d3f7dc789d53321 Mon Sep 17 00:00:00 2001 From: badosz0 Date: Fri, 1 Mar 2024 22:57:19 +0100 Subject: [PATCH] chore: update readme --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2a8f79c..0849394 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,12 @@ HolyTime .subtract(4, 'minutes') .isWeekend() -HolyTime.between( - HolyTime.add(HolyTime.startOf('day'), 10_000), - HolyTime.now() -) +HolyTime + .between( + HolyTime.add(HolyTime.startOf('day'), 10_000), + HolyTime.now() + ) + .in('hours') HolyTime.max(1666224000000, HolyTime.next('year')) @@ -82,7 +84,7 @@ in(amount: number, unit: HumanUnit): HolyTime add(time: TimeResolvable, amount: number, unit: HumanUnit): HolyTime; subtract(time: TimeResolvable, amount: number, unit: HumanUnit): HolyTime; -between(timeA: TimeResolvable, timeB: TimeResolvable): number; +between(timeA: TimeResolvable, timeB: TimeResolvable): HolyDuration; since(time: TimeResolvable): number; isLeapYear(time: TimeResolvable): boolean;