Date arithmetic on %DATE() and %TIMESTAMP() (touches rpg_eval_builtins.zig, rpg_date_add.zig) #712

Manually merged
binjovi-bot merged 2 commits from l1d-date-calls into trunk 2026-11-04 11:58:01 +00:00
Owner

Date arithmetic on %DATE() and %TIMESTAMP() (touches rpg_eval_builtins.zig, rpg_date_add.zig)

dateAdd (_QRNX_DT_INC) takes the saved %DATE() temporary as the date as
well as a CONST parameter (rpg_date_add.recover, from_temp), for a date
or a timestamp (the descriptor is read with rpg_date_convert.format), and
the duration unit %HOURS. _QRNX_DT_DEC has a catalog row and the same
layout (dateSubtract: d - %DAYS(n)). dateDifferenceCall reads
%diff(%date() : D : *days) (a temporary and a date field), and
dateResult the conversion of the result into a date field when it is passed
by address. Public twin statements that turn recovered: h-now1 41, 43, 45
and 47. docs/OPERATIONS.md is unchanged (ops-legend --write).

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":1,"newly_clean":0,"clean_delta":0,"base":322,"new":322},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/h-now1/stripped/object.savf 4"],"worse":[]},"full_check":{"exit":0,"seconds":888}}
# Date arithmetic on %DATE() and %TIMESTAMP() (touches rpg_eval_builtins.zig, rpg_date_add.zig) `dateAdd` (`_QRNX_DT_INC`) takes the saved `%DATE()` temporary as the date as well as a CONST parameter (`rpg_date_add.recover`, `from_temp`), for a date or a timestamp (the descriptor is read with `rpg_date_convert.format`), and the duration unit `%HOURS`. `_QRNX_DT_DEC` has a catalog row and the same layout (`dateSubtract`: `d - %DAYS(n)`). `dateDifferenceCall` reads `%diff(%date() : D : *days)` (a temporary and a date field), and `dateResult` the conversion of the result into a date field when it is passed by address. Public twin statements that turn recovered: h-now1 41, 43, 45 and 47. docs/OPERATIONS.md is unchanged (ops-legend --write). ## 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":1,"newly_clean":0,"clean_delta":0,"base":322,"new":322},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/h-now1/stripped/object.savf 4"],"worse":[]},"full_check":{"exit":0,"seconds":888}} ```
binjovi-bot manually merged commit e314828dae into trunk 2026-11-04 11:58:01 +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!712
No description provided.