Timestamp conversions, seconds differences and date/time comparison (touches rpg_eval.zig) #719
Loading…
Reference in a new issue
No description provided.
Delete branch "l1g-dt-cmp"
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?
Timestamp conversions, seconds differences and date/time comparison (touches rpg_eval.zig)
rpg_date_convert.recoveraccepts the type word113that%date(%timestamp())and%time(%timestamp())put between the two addresses,with the measured result formats (date and time
*ISO, separator byte 0);dateConvertCall(rpg_eval.zig) writes them as%DATE(ts)and%TIME(ts).dateDifferenceCallreads%diff(%timestamp() : T : *seconds)(26-byteoperands, duration id 0x12). Public twin statements that turn recovered:
h-now1 55, h-now2 37, 39 and 47. The
%left(C: 3)statements (h-bifs-char 29, 30)stop at control_flow (a guard around the length), not at a call.
_QRNX_DT_CMPhas a catalog row and a rule (dateCompareinrpg_eval_builtins.zig, the value
date_compareand its fold inbinaryinrpg_eval.zig). The five captures dtcmp-date-gt-d, dtcmp-d-gt-date,
dtcmp-date-eq-d, dtcmp-time-lt-t and dtcmp-t-lt-time (request l1/dt-cmp)
show the operand order: the operands are pushed in source order (the first
descriptor and the first address belong to the left operand), the call
returns the sign of b - a, and the swap with
0that follows reads as0 OP result, that isa OP b, for>,<and=alike. Public twinstatement that turns recovered: h-now1 57 (
%date() > D). The five capturesare adopted as public twins; their matrix rows are classed after the next
matrix run (no pub400 job from this lane).
The matrix rows of
the five twins are left for the next matrix snapshot (class-audit.sh needs a
snapshot of them, which needs the host).
No effect on the held-out call line (oracle: unchanged for both rule sets).
Gates