Time, Syntax, Example – Fortinet 5003 User Manual

Page 113: Related topics, Execute time

Advertising
background image

FortiSwitch-5003A CLI reference

execute

FortiSwitch-5003A and 5003 Fabric and Base Backplane Communications Guide
01-30000-85717-20081205

113

time

Get or set the system time.

Syntax

execute time [<time_str>]

time_str has the form

hh:mm:ss,

where

• 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

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

Related topics

execute date

config system global

Advertising