This content has been archived.

Table of Contents

Changing the value of a TimeOfDay property

When you use an expression on TimeofDay property type values, the expression converts the value into a BigDecimal where the whole number is the number of days and the fraction is the hour of the day expressed as a fraction of a day, for example, 12 hours is 0.5 (half of a day). The format is useful to know when you want to change the value of a property that is a Date, DateTime, or TimeofDay property type.

For example, assume that you have a property of type TimeofDay that is formatted as a standard time with hour, minute, and second without punctuation. To add 12 hours to the property:

  1. Use a Set action to assign the property value to a second property that is of type TimeofDay.
  2. On the right side of the expression, enter the property reference plus the fraction. In this example, enter .5 to add 12 hours.

Suggest Edit

100% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.