Sponsored Content
Full Discussion: Insertion of Leap Second
Top Forums UNIX for Advanced & Expert Users Insertion of Leap Second Post 94259 by Perderabo on Wednesday 28th of December 2005 12:53:08 PM
Old 12-28-2005
If you are running NTP correctly, the system will handle it. Otherwise, you will be off by a second...but without ntp, you probably were already off by more than that anyway.

The NTP solution: after 11:59:59 on December 31, ntp will retard the clock to try to freeze time for one second. During 12:59:60, the clock will still read 12:59:59. But time must advance, so each clock read will advance the microseconds by one. At 00:00:00 on Jan 1, the clock is back in sync with the true seconds. So during the second 12:59:60, the clock will be wrong by nearly one second. After that second, no trace of the leap second remains.
 

7 More Discussions You Might Find Interesting

1. HP-UX

Leap Second

Hi All, We are running the HP-UX 11.11 and Linux AS 3.0. so, shall we need to make any changes for leap second i.e. insert the leap second on 1st Jan 2006 or does the system have some setup which would take care of this automatically. Please advise. Regards, Inder (1 Reply)
Discussion started by: isingh786
1 Replies

2. UNIX for Advanced & Expert Users

leap seconds and the stdc library

I understand the NTP protocol, so keeping system time updated is not a problem. Standard C library routines like localtime() take a number of UTC seconds elapsed since the start of the epoch (Jan 1, 1970). These times in seconds can be a filetime, system time, or some other time in the past or... (1 Reply)
Discussion started by: jim mcnamara
1 Replies

3. UNIX for Dummies Questions & Answers

Leap year K-shell script

I need a k-shell script that tests for leap-year. Does anyone have one at hand, need ASAP!!! (2 Replies)
Discussion started by: p1jls02
2 Replies

4. UNIX for Dummies Questions & Answers

Number of leap seconds

Is there a function call in std library or unit command that returns the number of current leap seconds? GG (4 Replies)
Discussion started by: NAVTime
4 Replies

5. Shell Programming and Scripting

unix korn shell leap years problem

Write a function called dateToDays that takes three parameters -a month string such as Sep, a day number such as 18, and a year number such as 1962-and return s the number of days from January 1, 1900, to the date. Notes: I am asking you to account for leap years. my script is not... (0 Replies)
Discussion started by: babuda0059
0 Replies

6. Fedora

Leap second happening

Have anybody heard about the Leap second problem Leap second :A leap second is a one-second adjustment that is occasionally applied to Coordinated Universal Time (UTC) in order to keep its time of day close to the mean solar time. How could i avoid such thing in my script which i deal with... (6 Replies)
Discussion started by: wnaguib
6 Replies

7. Solaris

Leap second for year 2015

I hear the Leap second for 2015 will occur on June 30 at 23:59:60 according to the wild rumours from internet the expected impact ranges from crashing to hanging servers. Can anybody share their preparations what they have done for solaris servers? are there any patches to install or workaround?... (1 Reply)
Discussion started by: sparcguy
1 Replies
SYSTEMD-TIMESYNCD.SERVICE(8)                                 systemd-timesyncd.service                                SYSTEMD-TIMESYNCD.SERVICE(8)

NAME
systemd-timesyncd.service, systemd-timesyncd - Network Time Synchronization SYNOPSIS
systemd-timesyncd.service /lib/systemd/systemd-timesyncd DESCRIPTION
systemd-timesyncd is a system service that may be used to synchronize the local system clock with a remote Network Time Protocol server. It also saves the local time to disk every time the clock has been synchronized and uses this to possibly advance the system realtime clock on subsequent reboots to ensure it monotonically advances even if the system lacks a battery-buffered RTC chip. The systemd-timesyncd service specifically implements only SNTP. This minimalistic service will set the system clock for large offsets or slowly adjust it for smaller deltas. More complex use cases are not covered by systemd-timesyncd. The NTP servers contacted are determined from the global settings in timesyncd.conf(5), the per-link static settings in .network files, and the per-link dynamic settings received over DHCP. See systemd.network(5) for more details. timedatectl(1)'s set-ntp command may be used to enable and start, or disable and stop this service. FILES
/var/lib/systemd/timesync/clock This file contains the timestamp of the last successful synchronization. SEE ALSO
systemd(1), timesyncd.conf(5), systemd.network(5), systemd-networkd.service(8), timedatectl(1), localtime(5), hwclock(8) systemd 237 SYSTEMD-TIMESYNCD.SERVICE(8)
All times are GMT -4. The time now is 05:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy