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
Dateobject itself, for exampleDate.dayDiff().pjs date/time functions - Called from the
pjsnamespace, for examplepjs.timestamp().
Related Pages
- date.addDays()
- date.addHours()
- date.addMilliseconds()
- date.addMinutes()
- date.addMonths()
- date.addSeconds()
- date.addYears()
- Date.dayDiff()
- date.extractDay()
- date.extractHours()
- date.extractMicroseconds()
- date.extractMilliseconds()
- date.extractMinutes()
- date.extractMonth()
- date.extractSeconds()
- date.extractYear()
- Date.getDaysInMonth()
- date.getDaysInMonth() method
- Date.hourDiff()
- Date.isLeapYear()
- date.isLeapYear() method
- Date.microsecondDiff()
- Date.millisecondDiff()
- Date.minuteDiff()
- Date.monthDiff()
- Date.secondDiff()
- date.subtractDays()
- date.subtractHours()
- date.subtractMicroseconds()
- date.subtractMilliseconds()
- date.subtractMinutes()
- date.subtractMonths()
- date.subtractSeconds()
- date.subtractYears()
- Date.yearDiff()
- pjs.date()
- pjs.fromLilianDate()
- pjs.fromLilianSeconds()
- pjs.getCurrentJobDate()
- pjs.getCurrentJobDateNumeric()
- pjs.getDatePattern()
- pjs.getDayOfWeek()
- pjs.getTimePattern()
- pjs.getUTCOffset()
- pjs.setCurrentTime()
- pjs.testTimestamp()
- pjs.time()
- pjs.timestamp()
- pjs.toDate()
- pjs.toLilianDate()
- pjs.toLilianSeconds()