You can retrieve the current time of the Controller from the API endpoint:
The Use the
currentTime value can be used to determine for how long an Element or monitor has been is in its current status. (For example, refer to the Incident Panel gadget.) Note that this value is from the Controller's timezone.