rpg_eval.zig and rpg_source.zig: date, time and timestamp arithmetic, parts and conversions of fields recover #751
Loading…
Reference in a new issue
No description provided.
Delete branch "lr3"
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?
rpg_eval.zig and rpg_source.zig: date, time and timestamp arithmetic, parts and conversions of fields recover
The statements of
_QRNX_DT_INC,_QRNX_DT_DEC,_QRNX_DT_SUBand_QRNX_DT_CVTfailed at thecallstage (nooperation_semanticsfor operation 99) when the operand was a field, the duration was not days, months or hours, or the operand was a time. They recover now.x + %UNIT(n)orx - %UNIT(n)with the units%YEARS,%MONTHS,%DAYS,%HOURSand%MINUTES, on a%DATE(),%TIME()or%TIMESTAMP()value, a date, time or timestamp field, or a CONST parameter. The unit is the duration descriptor0004 00UU: 0x0d years, 0x0e months, 0x0f days, 0x10 hours, 0x11 minutes (twinslr2-date-iso-sub,lr2-time-addsub,lr2-ts-add).%SECONDShas no twin and stays open.%MONTHS(I5)).d = e + %DAYS(7)has the type ofe; before, it was declared aschar(10).%DIFF(d1: d2: *DAYS)of two fields recovers, and both fields are dates (timestamps with*SECONDS).%SUBDT(d: *YEARS),*MONTHSand*DAYSof a date field recover (_QRNX_DT_CVTinto a 32-byte work area, the parts read by offset).%DATE(c: *ISO)of a character field and%DATE(i)of a number recover; the character field stayschar.;is inside an argument list no longer goes through the summary of runtime calls.status-a-bandstatus-b(probeslr3-status-a-b,lr3-status-b).lr3-status-b(dictionary capture).lr3-status-a-b(dictionary capture).Gates