The current time: %DATE, %TIMESTAMP, their characters and parts #617
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-n-now-20261023"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current time: %DATE, %TIMESTAMP, their characters and parts
rpg_source_stmt.zig(runtimeSummary):_QRNX_TIME_DTZwith the26-byte timestamp format is
%TIMESTAMP(). A store of the time into thefirst bytes of a character field with blank padding after it is
T = %CHAR(time); a read of the first N characters into a shorter fieldis
T = %CHAR(time); a character read at byte K is%SUBST(%CHAR(time): K+1: N); the zoned digits of a part at its ISOposition are
%SUBDT(time: *PART);%SUBST(time:takes%CHAR(time).Other reads still refuse.
rpg_source.zig: a bare%DATE()(%TIMESTAMP()) into byte 0 of a10-byte (26-byte) field proves a date (timestamp) field: RPG takes them
only into such a field. The declaration is
dateortimestamp; thetimestamp default value has no INZ, another one is
z'...'.%SUBDTandits part words are source words.
rpg_eval.zig(tempRead): a read of fewer bytes than the statementwrote to a temporary no longer takes the whole written value. Before,
i = %subdt(%date() : *years)showed asi = %DATE().h-now1,h-now2(dictionary batteries now1, now2). LEMONADE:142 of 148 statements emitted (was 141).
Gates