Networking NVIDIA NVOS User Manual for InfiniBand Switches

Date and Time Commands

nv show system date-time 


nv show system date-time

Shows the system date and time.

Syntax Description

N/A

Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system date-time

                           operational                   applied
-------------------------  ---------------------------   --------------
local-time                 Tue 2025-04-08 17:28:16 IDT
universal-time             Tue 2025-04-08 14:28:16 UTC
rtc-time                   Tue 2025-04-08 14:28:17
system-clock-synchronized  no
ntp-service                n/a
rtc-in-local-tz            no
timezone                   Asia/Jerusalem                Asia/Jerusalem
unix-time                  1744122496.6114235

REST API

GET https://<ip>/nvue_v1/system/date-time

Related Commands

nv set system date-time timezone
nv action change system date-time

Notes


nv action change system date-time 


nv action change system date-time <yyyy-mm-dd> <hh:mm:ss>

Sets the system date and time.

Syntax Description

hh:mm:ss

Time, in HH:MM:SS format

yyyy-mm-dd

Date, in YYYY-MM-DD format

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv action change system date-time 2021-01-01 10:10:11

REST API

POST https://<ip>/nvue_v1/system/date-time

Related Commands

nv show system date-time

Notes

You cannot change the date and time when NTP is enabled.

nv set/unset system date-time timezone


nv set system date-time timezone <timezone>
nv unset system date-time timezone

Sets the system time zone.
The unset form of the command restores the default time zone (Etc/UTC).

Syntax Description

timezone

Time zone name. For example: Africa/Abidjan, Brazil/Acre, Africa/Accra, Chile/Continental

Default

Etc/UTC

History

25.02.2002 
25.02.5002 Updated command syntax

Example

admin@nvos:~$ nv set system date-time timezone America/New_York

REST API

PATCH https://<ip>/nvue_v1/system/date-time

Related Commands

nv show system date-time

Notes

You can specify the time zone in one of three ways:

  • A city in the same time zone, as region/city (for example, America/New_York or America/Argentina/Buenos_Aires). Press Tab to list the available values.

  • An offset from GMT, in the form Etc/GMT+<0–12> or Etc/GMT-<1–14>. The sign is inverted: Etc/GMT-2 is two hours ahead of GMT.

  • Etc/UTC (Coordinated Universal Time), the default

Last updated: