new syntax for internals

This commit is contained in:
2026-02-10 11:03:01 -06:00
parent 6df3b741cf
commit 4deb0e2577
9 changed files with 483 additions and 292 deletions

View File

@@ -124,14 +124,15 @@ function time_number(_rec) {
var dst = r.dst ? 1 : 0
var yday = r.yday || 0
var i = 0
if (year > time.epoch) {
var i = time.epoch
i = time.epoch
while (i < year) {
c = c + time.day * time.yearsize(i)
i = i + 1
}
} else if (year < time.epoch) {
var i = time.epoch - 1
i = time.epoch - 1
while (i > year) {
c = c + time.day * time.yearsize(i)
i = i - 1