In centos , You can use below command to install and the ntp for auto time syn.
1-OS= centos 7.x installation:
yum install ntp systemctl enable ntpd
2-initial sync, with CLoud NTP.
ntpdate pool.ntp.org
3-start the daemon with NTP CLoud Server.
systemctl start ntpd
Verification.
JJ@localhost ~]# date Thu Dec 26 16:59:29 IST 2024