Fortinet white logo
Fortinet white logo

Script Reference Guide

Time()

Time()

Returns the current time as a number in seconds. This is the time since the Epoch was measured.

Syntax

time();

Arguments

N/A

Events

Applicable in all events.

Example

when HTTP_REQUEST {
t = time()
debug(“-----time: t %s-----\n”, t)
}
Result:
-----time: t 1561424783-----

Supported Version

FortiADC version 4.8.x and later.

Time()

Time()

Returns the current time as a number in seconds. This is the time since the Epoch was measured.

Syntax

time();

Arguments

N/A

Events

Applicable in all events.

Example

when HTTP_REQUEST {
t = time()
debug(“-----time: t %s-----\n”, t)
}
Result:
-----time: t 1561424783-----

Supported Version

FortiADC version 4.8.x and later.