Add tests for trigtz

This commit is contained in:
Dianne Skoll
2025-09-04 14:29:00 -04:00
parent 47a4456c20
commit e449fcdfcf
2 changed files with 12 additions and 4 deletions

View File

@@ -32,7 +32,8 @@ BANNER %
REM Fri AT 23:30 TZ America/Toronto +1000 SATISFY [$Td == 13] MSG Fri 13th @23:30 Eastern is %a %2 here
SET a $T
SET b $Tt
MSG a = [a], b = [b]
set c trigtz()
MSG a = [a], b = [b], c = [c]
EOF
TZ=Europe/Amsterdam $REMIND - 2026-02-14@14:00 <<'EOF' >> $OUT 2>&1
@@ -41,7 +42,8 @@ BANNER %
REM Fri AT 23:30 TZ America/Toronto +1000 SATISFY [$Td == 13] MSG Fri 13th @23:30 Eastern is %a %2 here
SET a $T
SET b $Tt
MSG a = [a], b = [b]
set c trigtz()
MSG a = [a], b = [b], c = [c]
EOF
TZ=Europe/Amsterdam $REMIND - 2026-02-15@14:00 <<'EOF' >> $OUT 2>&1
@@ -66,6 +68,8 @@ SET full '2026-01-03@05:04'
SET last '2026-01-10@10:49'
REM [new] +100 MSG New Moon %*l %3.
SET a trigtz()
REM MSG trigtz = [a]
REM [first] +100 MSG First Quarter %*l %3.
REM [full] +100 MSG Full Moon %*l %3.
REM [last] +100 MSG Last Quarter %*l %3.
@@ -76,6 +80,8 @@ SET full tzconvert(full, "America/Toronto", "Australia/Sydney")
SET last tzconvert(last, "America/Toronto", "Australia/Sydney")
REM [new] +100 TZ Australia/Sydney MSG New Moon %*l %3. (*)
SET a trigtz()
REM MSG trigtz = [a]
REM [first] +100 TZ Australia/Sydney MSG First Quarter %*l %3. (*)
REM [full] +100 TZ Australia/Sydney MSG Full Moon %*l %3. (*)
REM [last] +100 TZ Australia/Sydney MSG Last Quarter %*l %3. (*)

View File

@@ -1,7 +1,7 @@
Fri 13th @23:30 Eastern is on Saturday, 14 February, 2026 at 5:30am here
a = 2026-02-14, b = 05:30
a = 2026-02-14, b = 05:30, c = America/Toronto
Fri 13th @23:30 Eastern is today at 5:30am here
a = 2026-02-14, b = 05:30
a = 2026-02-14, b = 05:30, c = America/Toronto
Fri 13th @23:30 Eastern is on Saturday, 14 March, 2026 at 4:30am here
a = 2026-03-14, b = 04:30
2025/01/09 * * * 540 9:00am Locally: at 09:00
@@ -16,6 +16,8 @@ a = 2026-03-14, b = 04:30
2025/10/09 * * * 540 9:00am Locally: at 09:00
2025/11/13 * * * 540 9:00am Locally: at 09:00
2025/12/11 * * * 540 9:00am Locally: at 09:00
trigtz =
trigtz = Australia/Sydney
new=2026-01-19@06:53 first=2026-01-26@15:48 full=2026-01-03@21:04 last=2026-01-11@02:49
Full Moon 2026-01-03 at 05:04.
Full Moon 2026-01-03 at 05:04. (*)