cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Difference between Date and Clock?

Don
Nimbostratus
Nimbostratus

What is the difference between date and clock command. What would cause the two to me different and how do I sync them up?

 

 

ltmA# clock

Tue 19 Oct 2021 12:13:53 AM UTC -0.001128 seconds

ltmA# date

Tue Oct 19 13:04:43 UTC 2021

 

 # tmsh list /sys ntp servers

sys ntp {

  servers { ntp.local.domain }

   remote      refid   st t when poll reach  delay  offset jitter

==============================================================================

*10.211.252.9  138.236.128.36  3 u 774 1024  1  2.682  -0.565  0.530

1 REPLY 1

Samir
Nacreous
Nacreous

 

 

clock:- which is a software clock used when the system is running that stores time according to the local time zone that you configure when you initially set up the system. clock capture the time from network time protocol (NTP) server.

 

date:- it is used to display the system date and time. It doens't show all details.