Date/Time API

Date/Time API

Overview

The Date/Time API contains the Profound.js APIs used to create, convert, compare, and calculate with date, time, and timestamp values. These APIs are the Profound.js equivalents of the RPG date and time operation codes and built-in functions.

The APIs in this section fall into three groups:

  • Date and time methods - Called directly on a date, time, or timestamp value, for example date.addDays().

  • Date functions - Called on the JavaScript Date object itself, for example Date.dayDiff().

  • pjs date/time functions - Called from the pjs namespace, for example pjs.timestamp().


Related Pages