The following functions operate with date and time values. A DateTime Type property represents an instant in time while Date and TimeofDay Types represent values. Adding (the BigDecimal/double values corresponding to) a Date and a TimeofDay together similarly represents an instant in time, but in an unknown or arbitrary time zone.
Syntax |
Description |
|
These Rule-Utility-Function rules are similar to the corresponding functions in Excel. |
|
|
@date(year, month, day) |
Returns a |
|
@datevalue(string) |
Returns a |
|
@day(double) @day(BigDecimal)) |
Returns the |
|
@month(double) |
Returns the Java |
|
@today() |
Returns the |
|
@weekday(double) @weekday(BigDecimal) |
Returns the |
|
@year(double) @year(BigDecimal) |
Returns the |
|
@hour(double) @hour(BigDecimal) |
Returns the Java |
|
@minute(double) @minute(BigDecimal) |
Returns the Java |
|
@second(double) @second(BigDecimal) |
Returns the Java |
|
@time(hour, minute, second) |
Returns a |
|
@timevalue(string) |
Returns a |
|
The following functions facilitate conversion between BigDecimal/double values derived from Use these functions to adjust the double value resulting from the sum of a |
|
|
@toGMT(double, zone) @toGMT(BigDecimal, zone) |
Returns a double/BigDecimal value (Pega 7 Platform |
|
@toLOCAL(double, zone) @toLOCAL(BigDecimal, zone) |
Returns a double/ For example, if bostonTime is a double that represents a date and time in the Eastern Standard Time zone, you can find the corresponding time in India by using: toLOCAL(toGMT(bostonTime, “EST”), “IST”) |