Emit a time value, a date decrement, an hours increment and a timestamp conversion (touches rpg_source.zig) #723

Manually merged
binjovi-bot merged 3 commits from l1h-time-templates into trunk 2026-11-04 18:04:24 +00:00
Owner

Emit a time value, a date decrement, an hours increment and a timestamp conversion (touches rpg_source.zig)

runtimeSummary refused five forms that the public twins prove.

  • A time: _QRNX_TIME_DTZ with the 8-byte time buffer (TEXT_VALUE(X'00000008D9000000'))
    is %TIME(); its _QRNX_DT_CVT from [8] *ISO is %CHAR(%TIME(): *HMS)
    (h-now1 35, 37). *HMS joins date_formats; the built-ins %TIME and
    %HOURS join the list of rpg_source.zig expression (no change to the
    ; dispatch or to rpg_eval.zig).
  • _QRNX_DT_DEC is accepted when the assignment shows - %DAYS( or
    - %MONTHS( (h-now1 43).
  • _QRNX_DT_INC also accepts + %HOURS( (h-now1 47).
  • A timestamp _QRNX_DT_CVT from [26] *ISO is %CHAR(%TIMESTAMP(): fmt)
    (h-now1 49, h-now2 43); the convert and stamp refusal is gone.
  • A TYPED_MEMORY_READ of %CHAR(stamp: *ISO0) is
    %SUBST(%CHAR(%TIMESTAMP(): *ISO0): k+1: n) within the 20 bytes (h-now2 45).

The width of the time value (10 date, 26 timestamp, 8 time) replaces the
stamp flag. Time parts (%SUBDT of a time) stay refused.

Public emits, 0.1.436 against this build: failures 390 to 381, clean programs
328 to 330 (dtcmp-t-lt-time, dtcmp-time-lt-t), no program worse; TIME_DTZ
failure lines 13 to 4. Test: src/rpg_source_stmt_time_test.zig.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"current","emit":{"worse":[],"better":4,"newly_clean":2,"clean_delta":2,"base":328,"new":330},"twins":{"groups":473,"recovered":465,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-edit/stripped/object.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":1035}}
# Emit a time value, a date decrement, an hours increment and a timestamp conversion (touches rpg_source.zig) `runtimeSummary` refused five forms that the public twins prove. - A time: `_QRNX_TIME_DTZ` with the 8-byte time buffer (`TEXT_VALUE(X'00000008D9000000')`) is `%TIME()`; its `_QRNX_DT_CVT` from `[8] *ISO` is `%CHAR(%TIME(): *HMS)` (h-now1 35, 37). `*HMS` joins `date_formats`; the built-ins `%TIME` and `%HOURS` join the list of `rpg_source.zig` `expression` (no change to the `;` dispatch or to `rpg_eval.zig`). - `_QRNX_DT_DEC` is accepted when the assignment shows `- %DAYS(` or `- %MONTHS(` (h-now1 43). - `_QRNX_DT_INC` also accepts `+ %HOURS(` (h-now1 47). - A timestamp `_QRNX_DT_CVT` from `[26] *ISO` is `%CHAR(%TIMESTAMP(): fmt)` (h-now1 49, h-now2 43); the `convert and stamp` refusal is gone. - A `TYPED_MEMORY_READ` of `%CHAR(stamp: *ISO0)` is `%SUBST(%CHAR(%TIMESTAMP(): *ISO0): k+1: n)` within the 20 bytes (h-now2 45). The width of the time value (10 date, 26 timestamp, 8 time) replaces the `stamp` flag. Time parts (`%SUBDT` of a time) stay refused. Public emits, 0.1.436 against this build: failures 390 to 381, clean programs 328 to 330 (dtcmp-t-lt-time, dtcmp-time-lt-t), no program worse; `TIME_DTZ` failure lines 13 to 4. Test: `src/rpg_source_stmt_time_test.zig`. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"current","emit":{"worse":[],"better":4,"newly_clean":2,"clean_delta":2,"base":328,"new":330},"twins":{"groups":473,"recovered":465,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-edit/stripped/object.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":1035}} ```
binjovi-bot manually merged commit 8f3a85995e into trunk 2026-11-04 18:04:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!723
No description provided.