hare

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

commit ec2e0a925ae954999a073cae7c8a57c69df3f935
parent 3bd4544d20954217ecc17516417d8fea758ad0b2
Author: Byron Torres <b@torresjrjr.com>
Date:   Mon, 24 Jan 2022 12:18:26 +0000

s/abbrev/abbr/

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

Diffstat:
Mtime/chrono/timescale.ha | 14+++++++-------
Mtime/chrono/timezone.ha | 12++++++------
Mtime/olson/olson.ha | 8++++----
3 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/time/chrono/timescale.ha b/time/chrono/timescale.ha @@ -3,7 +3,7 @@ use time; // Represents a scale of time; a time standard export type timescale = struct { name: str, - abbrev: str, + abbr: str, to_tai: *ts_converter, from_tai: *ts_converter, }; @@ -17,7 +17,7 @@ export type ts_converter = fn(i: time::instant) (time::instant | time::error); // Continuous (no leap seconds). export const TAI: timescale = timescale { name = "International Atomic Time", - abbrev = "TAI", + abbr = "TAI", to_tai = &conv_tai_tai, from_tai = &conv_tai_tai, }; @@ -40,7 +40,7 @@ fn conv_tai_tai(i: time::instant) (time::instant | time::error) = { // Discontinuous (has leap seconds). export const UTC: timescale = timescale { name = "Coordinated Universal Time", - abbrev = "UTC", + abbr = "UTC", to_tai = &conv_utc_tai, from_tai = &conv_tai_utc, }; @@ -69,7 +69,7 @@ fn conv_utc_tai(utc: time::instant) (time::instant | time::error) = { // Discontinuous (has leap seconds). export const UNIX: timescale = timescale { name = "Unix Time", - abbrev = "UNIX", + abbr = "UNIX", to_tai = &conv_utc_tai, from_tai = &conv_tai_utc, }; @@ -98,7 +98,7 @@ fn conv_unix_tai(unix: time::instant) (time::instant | time::error) = { // Continuous (no leap seconds). export const GPS: timescale = timescale { name = "Global Positioning System Time", - abbrev = "GPS", + abbr = "GPS", to_tai = &conv_utc_tai, from_tai = &conv_tai_utc, }; @@ -127,7 +127,7 @@ fn conv_gps_tai(gps: time::instant) (time::instant | time::error) = { // Continuous (no leap seconds). export const TT: timescale = timescale { name = "Terrestrial Time", - abbrev = "TT", + abbr = "TT", to_tai = &conv_tt_tai, from_tai = &conv_tai_tt, }; @@ -158,7 +158,7 @@ fn conv_tt_tai(tt: time::instant) (time::instant | time::error) = { // Continuous (no leap seconds). export const MTC: timescale = timescale { name = "Coordinated Mars Time", - abbrev = "MTC", + abbr = "MTC", to_tai = &conv_mtc_tai, from_tai = &conv_tai_mtc, }; diff --git a/time/chrono/timezone.ha b/time/chrono/timezone.ha @@ -34,7 +34,7 @@ export type zone = struct { name: str, // The abbreviated name ("CEST") - abbrev: str, + abbr: str, // Indicator of Daylight Saving Time dst: bool, // true @@ -116,7 +116,7 @@ export fn lookupzone(m: *moment) zone = { // chrono::zone { // zoffset = -10 * time::HOUR, // name = "Hawaiian Reef", -// abbrev = "HARE", +// abbr = "HARE", // dst = false, // }, // ); @@ -146,7 +146,7 @@ const TZ_local: timezone = timezone { zone { zoffset = 0 * time::SECOND, name = "Local Time", - abbrev = "", + abbr = "", dst = false, }, ], @@ -164,7 +164,7 @@ const TZ_UTC: timezone = timezone { zone { zoffset = 0 * time::SECOND, name = "Universal Coordinated Time", - abbrev = "UTC", + abbr = "UTC", dst = false, }, ], @@ -182,7 +182,7 @@ const TZ_TAI: timezone = timezone { zone { zoffset = 0 * time::SECOND, name = "International Atomic Time", - abbrev = "TAI", + abbr = "TAI", dst = false, }, ], @@ -200,7 +200,7 @@ const TZ_MTC: timezone = timezone { zone { zoffset = 0 * time::SECOND, name = "Coordinated Mars Time", - abbrev = "MTC", + abbr = "MTC", dst = false, }, ], diff --git a/time/olson/olson.ha b/time/olson/olson.ha @@ -39,13 +39,13 @@ const tz_europe__amsterdam: chrono::timezone = chrono::timezone{ chrono::zone { zoffset = 1 * time::HOUR, name = "Central European Time", - abbrev = "CET", + abbr = "CET", dst = false, }, chrono::zone { zoffset = 2 * time::HOUR, name = "Central European Summer Time", - abbrev = "CEST", + abbr = "CEST", dst = true, }, ], @@ -63,13 +63,13 @@ const tz_cet: chrono::timezone = chrono::timezone{ chrono::zone { zoffset = 1 * time::HOUR, name = "Central European Time", - abbrev = "CET", + abbr = "CET", dst = false, }, chrono::zone { zoffset = 2 * time::HOUR, name = "Central European Summer Time", - abbrev = "CEST", + abbr = "CEST", dst = true, }, ],