Define the UTC time components as EQU, not EQUS

Fixes #827
This commit is contained in:
Rangi
2021-04-13 10:11:21 -04:00
parent 81327b0d99
commit 49174f4486
5 changed files with 33 additions and 27 deletions

14
test/asm/utc-time.asm Normal file
View File

@@ -0,0 +1,14 @@
MACRO between
assert (\1) <= (\2) && (\2) <= (\3)
ENDM
between 0, __UTC_YEAR__, 9999 ; Y10K problem...
between 1, __UTC_MONTH__, 12
between 1, __UTC_DAY__, 31
between 0, __UTC_HOUR__, 23
between 0, __UTC_MINUTE__, 59
between 0, __UTC_SECOND__, 60 ; leap seconds!
UTC_TIME EQUS STRCAT("{04d:__UTC_YEAR__}-{02d:__UTC_MONTH__}-{02d:__UTC_DAY__}T", \
"{02d:__UTC_HOUR__}:{02d:__UTC_MINUTE__}:{02d:__UTC_SECOND__}Z")
assert !STRCMP("{UTC_TIME}", __ISO_8601_UTC__)

0
test/asm/utc-time.err Normal file
View File

0
test/asm/utc-time.out Normal file
View File