Fortinet black logo

CLI Reference

time

time

Get or set the system time.

Syntax

execute time  System time.
        {hh:mm:ss}   hh: 0-23, mm: 0-59, ss: 0-59.

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

You are allowed to shorten numbers to only one digit when setting the time. For example both 01:01:01 and 1:1:1 are allowed.

Example

This example sets the system time to 15:31:03:

execute time 15:31:03

time

Get or set the system time.

Syntax

execute time  System time.
        {hh:mm:ss}   hh: 0-23, mm: 0-59, ss: 0-59.

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

You are allowed to shorten numbers to only one digit when setting the time. For example both 01:01:01 and 1:1:1 are allowed.

Example

This example sets the system time to 15:31:03:

execute time 15:31:03