Call rules: %SCAN from its arguments, time and timestamp conversions #706

Manually merged
binjovi-bot merged 1 commit from l1b-call-rules into trunk 2026-11-03 16:46:22 +00:00
Owner

Call rules: %SCAN from its arguments, time and timestamp conversions

%SCAN(arg: source[: start]) in rpg_eval_builtins.zig (scan) is composed
from its arguments instead of one operation sequence: the literal (a one-byte
literal is an integer constant, a longer one text), a parameter or a field as
the source, the start, and the lengths, each proved against the literal and
the field. It recovers %scan('x': parm), %scan('a': field) and
%scan('a': field: 2) (FLOW scan, qualified-subroutines, h-bifs-char).

_QRNX_DT_CVT (rpg_date_convert.zig, format) reads the descriptor kind
(1 date, 2 time, 3 timestamp) and carries the measured rows of the public
twins: *MDY and *JUL (h-now1, r5e-date-held), the time formats *ISO and
*HMS (h-now1), the timestamp *ISO and *ISO0 (h-now1, h-now2). A
timestamp in *ISO0 has 20 bytes of data under a descriptor of 26
(data_width). _QRNX_TIME_DTZ (rpg_time_call.zig, outputStorage) takes
the 8-byte temporary of %TIME().

Public twin statements that turn recovered: FLOW scan (8, 13, both twins),
FLOW qualified-subroutines (16, both twins), h-bifs-char (31, 32), h-now1
(33, 35, 37, 49), h-now2 (43, 45), r5e-date-held (15).

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","emit":{"worse":[],"better":14,"newly_clean":3,"clean_delta":3,"base":317,"new":320},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/DSPLY/error-observable/archive.savf 4","savf/SC-ILE/DSPLY/error-stripped/archive.savf 4","savf/SC-ILE/EXPERIMENTS/decimal-fault-report/stripped/archive.savf 4","savf/SC-ILE/EXPERIMENTS/decimal-sign-report/stripped/archive.savf 4","savf/SC-ILE/EXPERIMENTS/h-bifs-char/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/h-now1/stripped/object.savf 4","savf/SC-ILE/EXPERIMENTS/h-now2/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/packed-add-report/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/packed-compose-report/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/packed-compose-sign-report/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/r5e-date-held/stripped/archive.savf 1","savf/SC-ILE/EXPERIMENTS/shared-io-full/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/shared-io-none/stripped/archive.savf 3","savf/SC-ILE/FLOW/conditions-observable/archive.savf 3","savf/SC-ILE/FLOW/conditions-stripped/archive.savf 3","savf/SC-ILE/FLOW/qualified-subroutines-observable/archive.savf 1","savf/SC-ILE/FLOW/qualified-subroutines-stripped/archive.savf 1","savf/SC-ILE/FLOW/scan-observable/archive.savf 2","savf/SC-ILE/FLOW/scan-stripped/archive.savf 2"],"worse":[]},"full_check":{"exit":0,"seconds":940}}
# Call rules: %SCAN from its arguments, time and timestamp conversions `%SCAN(arg: source[: start])` in `rpg_eval_builtins.zig` (`scan`) is composed from its arguments instead of one operation sequence: the literal (a one-byte literal is an integer constant, a longer one text), a parameter or a field as the source, the start, and the lengths, each proved against the literal and the field. It recovers `%scan('x': parm)`, `%scan('a': field)` and `%scan('a': field: 2)` (FLOW scan, qualified-subroutines, h-bifs-char). `_QRNX_DT_CVT` (`rpg_date_convert.zig`, `format`) reads the descriptor kind (1 date, 2 time, 3 timestamp) and carries the measured rows of the public twins: `*MDY` and `*JUL` (h-now1, r5e-date-held), the time formats `*ISO` and `*HMS` (h-now1), the timestamp `*ISO` and `*ISO0` (h-now1, h-now2). A timestamp in `*ISO0` has 20 bytes of data under a descriptor of 26 (`data_width`). `_QRNX_TIME_DTZ` (`rpg_time_call.zig`, `outputStorage`) takes the 8-byte temporary of `%TIME()`. Public twin statements that turn recovered: FLOW scan (8, 13, both twins), FLOW qualified-subroutines (16, both twins), h-bifs-char (31, 32), h-now1 (33, 35, 37, 49), h-now2 (43, 45), r5e-date-held (15). ## 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","emit":{"worse":[],"better":14,"newly_clean":3,"clean_delta":3,"base":317,"new":320},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/DSPLY/error-observable/archive.savf 4","savf/SC-ILE/DSPLY/error-stripped/archive.savf 4","savf/SC-ILE/EXPERIMENTS/decimal-fault-report/stripped/archive.savf 4","savf/SC-ILE/EXPERIMENTS/decimal-sign-report/stripped/archive.savf 4","savf/SC-ILE/EXPERIMENTS/h-bifs-char/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/h-now1/stripped/object.savf 4","savf/SC-ILE/EXPERIMENTS/h-now2/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/packed-add-report/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/packed-compose-report/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/packed-compose-sign-report/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/r5e-date-held/stripped/archive.savf 1","savf/SC-ILE/EXPERIMENTS/shared-io-full/stripped/archive.savf 3","savf/SC-ILE/EXPERIMENTS/shared-io-none/stripped/archive.savf 3","savf/SC-ILE/FLOW/conditions-observable/archive.savf 3","savf/SC-ILE/FLOW/conditions-stripped/archive.savf 3","savf/SC-ILE/FLOW/qualified-subroutines-observable/archive.savf 1","savf/SC-ILE/FLOW/qualified-subroutines-stripped/archive.savf 1","savf/SC-ILE/FLOW/scan-observable/archive.savf 2","savf/SC-ILE/FLOW/scan-stripped/archive.savf 2"],"worse":[]},"full_check":{"exit":0,"seconds":940}} ```
Compose %SCAN from its arguments; measure time and timestamp conversion formats
All checks were successful
binjovi/ci Binjovi completed the frozen plan
8f9f016af9
binjovi-bot manually merged commit 8f9f016af9 into trunk 2026-11-03 16:46:21 +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!706
No description provided.