Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

The pjs.setCurrentTime() API will change a field's value to the current time, date or time stamp depending on the type of field passed in as the parameter.

Different types
Type inType/Value out
Packed decimal (12)Time & date as numeric
Packed decimal (14)Time & date (with long year) as numeric
DateDate
TimeTime
TimestampTimestamp
Parameter
  1. Field
Example
pjs.define("time", { type: 'packed decimal', length: 12, decimals: 0 });
pjs.setCurrentTime(time);


RPG Equivalent

TIME

  • No labels