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 TimeofDayproperty type.
For example, assume that you have a property of type TimeofDaythat is formatted as a standard time with hour, minute, and second without punctuation. To add 12 hours to the property:
- Use a Set action to assign the property value to a second property that is of type TimeofDay.
- On the right side of the expression, enter the property reference plus the fraction. In this example, enter .5 to add 12 hours.