Skip to main content
Version: 2.2.1

Fetches the current time from the WEB server

To get the current time in an external application, you can use the getTimeNow method. This method does not require any parameters and can be used simply.

Below is an example for fetching the current time:

$value = $workflow_api->getTimeNow();

The value returned by the method will be a string in the "HH:MM:SS" format representing the current time.

caution

It is important to note that the current time is based on the time zone configured on the server where the script is running. Therefore, if you need to use a specific time, we recommended checking and setting the time zone correctly before fetching the current time.