From 7e4f067c350c39cbb51a90ec8f9be851f3019315 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sat, 31 Dec 2022 19:10:36 -0600 Subject: [PATCH] Compute tm_yday and tm_wday directly in ~gmlocaltime. This avoids calling mktime (future versions of which may call ~gmlocaltime), and also deals correctly with time zones. --- time.asm | 28 ++++++++++++++++++++++++++-- time.macros | 12 ++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/time.asm b/time.asm index 00aeea8..5cc9ff6 100644 --- a/time.asm +++ b/time.asm @@ -588,6 +588,7 @@ lb2b dec month lda month set the month ldy #tm_mon sta [tm],y + ph4