hare

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

commit 39c2b0cda4fd7e188f4bdd6799467222cf569c5c
parent ab6f3e780b1b7e3bb89d45d4984c1304e2011b2e
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue,  1 Feb 2022 00:30:15 +0000

rm chrono::unix: timescale

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

Diffstat:
Mtime/chrono/timescale.ha | 29-----------------------------
1 file changed, 0 insertions(+), 29 deletions(-)

diff --git a/time/chrono/timescale.ha b/time/chrono/timescale.ha @@ -62,35 +62,6 @@ fn conv_utc_tai(a: time::instant) (time::instant | time::error) = { }; -// Unix Time -// -// Used for computer timekeeping. -// Based on UTC, near 1-to-1 correspondence. -// Discontinuous (has leap seconds). -export const unix: timescale = timescale { - name = "Unix Time", - abbr = "UNIX", - to_tai = &conv_utc_tai, - from_tai = &conv_tai_utc, -}; - -fn conv_tai_unix(a: time::instant) (time::instant | time::error) = { - const b = time::instant { - sec = a.sec - 37, - nsec = a.nsec, - }; - return b; -}; - -fn conv_unix_tai(a: time::instant) (time::instant | time::error) = { - const b = time::instant { - sec = a.sec + 37, - nsec = a.nsec, - }; - return b; -}; - - // Global Positioning System Time // // Used for GPS coordination.