Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The pjs.setCurrentTime() API will change a fields field's value to the current time, date or time stamp depending on the type of the field you pass 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 name (as string)
Example
Code Block
languagejavascript
  pjs.define("time", { type: 'packed decimal', length: 12, decimals: 0 });
  pjs.setCurrentTime(time);

...