The current time: %DATE, %TIMESTAMP, their characters and parts #617

Manually merged
binjovi-bot merged 1 commit from rpg-9-n-now-20261023 into trunk 2026-10-23 12:33:36 +00:00
Owner

The current time: %DATE, %TIMESTAMP, their characters and parts

  • rpg_source_stmt.zig (runtimeSummary): _QRNX_TIME_DTZ with the
    26-byte timestamp format is %TIMESTAMP(). A store of the time into the
    first bytes of a character field with blank padding after it is
    T = %CHAR(time); a read of the first N characters into a shorter field
    is T = %CHAR(time); a character read at byte K is
    %SUBST(%CHAR(time): K+1: N); the zoned digits of a part at its ISO
    position are %SUBDT(time: *PART); %SUBST(time: takes %CHAR(time).
    Other reads still refuse.
  • rpg_source.zig: a bare %DATE() (%TIMESTAMP()) into byte 0 of a
    10-byte (26-byte) field proves a date (timestamp) field: RPG takes them
    only into such a field. The declaration is date or timestamp; the
    timestamp default value has no INZ, another one is z'...'. %SUBDT and
    its part words are source words.
  • rpg_eval.zig (tempRead): a read of fewer bytes than the statement
    wrote to a temporary no longer takes the whole written value. Before,
    i = %subdt(%date() : *years) showed as i = %DATE().
  • Probes h-now1, h-now2 (dictionary batteries now1, now2). LEMONADE:
    142 of 148 statements emitted (was 141).

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"emit":{"worse":[],"better":1,"newly_clean":0,"clean_delta":0,"base":203,"new":203},"twins":{"groups":415,"recovered":402,"regressions":[],"newly":2},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":672}}
# The current time: %DATE, %TIMESTAMP, their characters and parts - `rpg_source_stmt.zig` (`runtimeSummary`): `_QRNX_TIME_DTZ` with the 26-byte timestamp format is `%TIMESTAMP()`. A store of the time into the first bytes of a character field with blank padding after it is `T = %CHAR(time)`; a read of the first N characters into a shorter field is `T = %CHAR(time)`; a character read at byte K is `%SUBST(%CHAR(time): K+1: N)`; the zoned digits of a part at its ISO position are `%SUBDT(time: *PART)`; `%SUBST(time:` takes `%CHAR(time)`. Other reads still refuse. - `rpg_source.zig`: a bare `%DATE()` (`%TIMESTAMP()`) into byte 0 of a 10-byte (26-byte) field proves a date (timestamp) field: RPG takes them only into such a field. The declaration is `date` or `timestamp`; the timestamp default value has no INZ, another one is `z'...'`. `%SUBDT` and its part words are source words. - `rpg_eval.zig` (`tempRead`): a read of fewer bytes than the statement wrote to a temporary no longer takes the whole written value. Before, `i = %subdt(%date() : *years)` showed as `i = %DATE()`. - Probes `h-now1`, `h-now2` (dictionary batteries now1, now2). LEMONADE: 142 of 148 statements emitted (was 141). ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"emit":{"worse":[],"better":1,"newly_clean":0,"clean_delta":0,"base":203,"new":203},"twins":{"groups":415,"recovered":402,"regressions":[],"newly":2},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":672}} ```
The current time: %DATE, %TIMESTAMP, their characters and parts
All checks were successful
binjovi/ci Binjovi completed the frozen plan
c16ca67188
binjovi-bot manually merged commit c16ca67188 into trunk 2026-10-23 12:33:36 +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!617
No description provided.