hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit b0a514fda7902af78a45edfdeeeaf6df96800bbf
parent d4cb18b8389c65ae136e0459101404015a6cc835
Author: Byron Torres <b@torresjrjr.com>
Date:   Sun, 26 Dec 2021 11:39:34 +0000

add dummy datetime::diff()

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mdatetime/arithmetic.ha | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/datetime/arithmetic.ha b/datetime/arithmetic.ha @@ -25,6 +25,12 @@ export type calculus = enum int { PHYSICAL, }; +// Calculates the difference between two datetimes +export fn diff(a: datetime, b: datetime) period = { + // TODO + return period { ... }; +}; + // Hops, starting from a datetime, to static inter-period points along the // calendar, according to the given periods, and returns a new datetime. // Inter-period points are the starts of years, months, days, etc.