The setCurrentTime API will change a fields value to the current time, date or time stamp depending on the type of the field you pass in.
Different types
Type in | Type/Value out |
---|---|
Packed decimal (12) | Time & date as numeric |
Packed decimal (14) | Time & date (with long year) as numeric |
Date | Date |
Time | Time |
Timestamp | Timestamp |
Parameters
- Field name (as string)
Example
pjs.define("time", { type: 'packed decimal', length: 12, decimals: 0 }); pjs.setCurrentTime(time);
RPG Equivalent
TIME