ph_relativetime PowerHome formula function
Description
Obtains a time that occurs a specified number of seconds after or before another time within a 24-hour period.
Syntax
ph_relativetime ( time, n )
Argument Description
time A time value
n A long number of seconds
Return value
Time. Returns the time that occurs n seconds after time if n is greater than 0. Returns the time that occurs n seconds before time if n is less than 0. The returned time is in milliseconds precision.
Usage
This function is similar to the relativetime function whose time is returned in microsecond precision. Use this function when trying to save the resulting time to the PowerHome database since the database does not support microsecond precision.