Fortinet white logo
Fortinet white logo

CLI Reference

execute time

execute time

Get or set the system time.

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

This example gets the system time:

# execute time

current time is: 16:07:45

last ntp sync:Fri Aug 10 15:55:40 2018

execute time

execute time

Get or set the system time.

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

This example gets the system time:

# execute time

current time is: 16:07:45

last ntp sync:Fri Aug 10 15:55:40 2018