Fortinet black logo

Handbook (HTML)

execute time

Copy Link
Copy Doc ID 73ac471a-9afd-11ea-8862-00505692583a:393630

execute time

The execute time command allows you to get or set the system time.

Syntax

execute time [<time_str>]

where:

Variable Description
<time _str>

This variable has the form hh:mm:ss.

  • hh is the hour and can be 00 to 23
  • mm is the minutes and can be 00 to 59
  • ss is the seconds and can be 00 to 59

All parts of the time are required. Single digits are allowed for each of hh, mm, and ss.

If you do not specify a time, the command returns the current system time.

Example

To set the system time to 15:31:03:

execute time 15:31:03

See also

execute time

The execute time command allows you to get or set the system time.

Syntax

execute time [<time_str>]

where:

Variable Description
<time _str>

This variable has the form hh:mm:ss.

  • hh is the hour and can be 00 to 23
  • mm is the minutes and can be 00 to 59
  • ss is the seconds and can be 00 to 59

All parts of the time are required. Single digits are allowed for each of hh, mm, and ss.

If you do not specify a time, the command returns the current system time.

Example

To set the system time to 15:31:03:

execute time 15:31:03

See also