commit 06c96eda85fbb1f9fd3ea1f4f8d729b26a68189c
parent dc78351954ad7c29055e709c9e54336ae68073bf
Author: Byron Torres <b@torresjrjr.com>
Date: Fri, 7 Jan 2022 18:47:49 +0000
make type locality = *timezone
Signed-off-by: Byron Torres <b@torresjrjr.com>
Diffstat:
2 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/datetime/timezone.ha b/datetime/timezone.ha
@@ -12,12 +12,6 @@ export fn tzdb(name: str) chrono::timezone = {
// Some example timezones
//
-// "Europe/Amsterdam" timezone
-export const TZ_Europe_Amsterdam: chrono::tzlink = chrono::tzlink {
- name = "Europe/Amsterdam",
- tz = &TZ_CET,
-};
-
// "CET", "Central European Time" timezone
export const TZ_CET: chrono::timezone = chrono::timezone {
name = "CET",
diff --git a/time/chrono/timezone.ha b/time/chrono/timezone.ha
@@ -1,6 +1,6 @@
use time;
-export type locality = (*timezone | *tzlink);
+export type locality = *timezone;
// The zoneinfo of a datetime
export type zoneinfo = struct {
@@ -33,12 +33,6 @@ export type zonetran = struct {
zoneindex: int,
};
-// An alias to a timezone
-export type tzlink = struct {
- name: str,
- tz: *timezone,
-};
-
// A destructured dual std/dst POSIX timezone. See tzset(3).
type tzname = struct {
std_name: str,