Emit a time value, a date decrement, an hours increment and a timestamp conversion (touches rpg_source.zig) #723
Loading…
Reference in a new issue
No description provided.
Delete branch "l1h-time-templates"
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?
Emit a time value, a date decrement, an hours increment and a timestamp conversion (touches rpg_source.zig)
runtimeSummaryrefused five forms that the public twins prove._QRNX_TIME_DTZwith the 8-byte time buffer (TEXT_VALUE(X'00000008D9000000'))is
%TIME(); its_QRNX_DT_CVTfrom[8] *ISOis%CHAR(%TIME(): *HMS)(h-now1 35, 37).
*HMSjoinsdate_formats; the built-ins%TIMEand%HOURSjoin the list ofrpg_source.zigexpression(no change to the;dispatch or torpg_eval.zig)._QRNX_DT_DECis accepted when the assignment shows- %DAYS(or- %MONTHS((h-now1 43)._QRNX_DT_INCalso accepts+ %HOURS((h-now1 47)._QRNX_DT_CVTfrom[26] *ISOis%CHAR(%TIMESTAMP(): fmt)(h-now1 49, h-now2 43); the
convert and stamprefusal is gone.TYPED_MEMORY_READof%CHAR(stamp: *ISO0)is%SUBST(%CHAR(%TIMESTAMP(): *ISO0): k+1: n)within the 20 bytes (h-now2 45).The width of the time value (10 date, 26 timestamp, 8 time) replaces the
stampflag. Time parts (%SUBDTof a time) stay refused.Public emits, 0.1.436 against this build: failures 390 to 381, clean programs
328 to 330 (dtcmp-t-lt-time, dtcmp-time-lt-t), no program worse;
TIME_DTZfailure lines 13 to 4. Test:
src/rpg_source_stmt_time_test.zig.Gates