Fortinet white logo
Fortinet white logo

Script Reference Guide

Ctime()

Ctime()

Returns the current time as a string, for example, “Tue Jun 25 14:11:01 2019”.

Syntax

ctime();

Arguments

N/A

Events

Applicable in all events.

Example

when HTTP_REQUEST {
ct = ctime()
debug(“-----ctime: ct %s-----\n”, ct)
}
Result:
-----ctime: ct Mon Jun 24 18:06:23 2019-----

Supported Version

FortiADC version 4.8.x and later.

Ctime()

Ctime()

Returns the current time as a string, for example, “Tue Jun 25 14:11:01 2019”.

Syntax

ctime();

Arguments

N/A

Events

Applicable in all events.

Example

when HTTP_REQUEST {
ct = ctime()
debug(“-----ctime: ct %s-----\n”, ct)
}
Result:
-----ctime: ct Mon Jun 24 18:06:23 2019-----

Supported Version

FortiADC version 4.8.x and later.