Calculating time difference
Posted: 2014-06-08 22:01
Hi,
New to AppGini and PHP I need to calculate the total time for an event.
I have a start time (time field) and completion time (time field).
In the before update hook I have the following formula:
$data['TotalTime'] = $data['CompletionTime'] - $data['StartTime'];
This always gives the result -12:00:20A.
Guidance appreciated.
John
New to AppGini and PHP I need to calculate the total time for an event.
I have a start time (time field) and completion time (time field).
In the before update hook I have the following formula:
$data['TotalTime'] = $data['CompletionTime'] - $data['StartTime'];
This always gives the result -12:00:20A.
Guidance appreciated.
John