[181424] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: REMINDER: LEAP SECOND

daemon@ATHENA.MIT.EDU (Gary E. Miller)
Tue Jun 23 22:34:04 2015

X-Original-To: nanog@nanog.org
Date: Tue, 23 Jun 2015 19:33:44 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: NANOG <nanog@nanog.org>
In-Reply-To: <8039932.16.1435111370562.JavaMail.root@benjamin.baylink.com>
Errors-To: nanog-bounces@nanog.org

--Sig_/LUARV0+aUXn2n9c5BPfd7LU
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Jay!

On Tue, 23 Jun 2015 22:02:50 -0400 (EDT)
Jay Ashworth <jra@baylink.com> wrote:

> ----- Original Message -----
> > From: "Harlan Stenn" <stenn@ntp.org>
>=20
> > > You misunderstand the problem. :) The problem is not "clock skips
> > > backward one second," because most of the time that's not what
> > > happens. The problem is that most software does not handle it well
> > > when the clock ticks ... :59 :60 :00 instead of ticking directly
> > > from
> > > :59 to :00.
> >=20
> > POSIX NEVER shows :60.
>=20
> Then I hope POSIX does not claim to represent UTC, because UTC does,
> no?

POSIX-1:2001 clearly 61 seeconds in a minute:

The POSIX-1:2001 docs are here:
    http://pubs.opengroup.org/onlinepubs/009695399/basedefs/time.h.html

=46rom the Description:

    "The <time.h> header shall declare the structure tm, which shall
    include at least the following members:

    int    tm_sec   Seconds [0,60]. "

=46rom the Application Usage:

    "The range [0,60] for tm_sec allows for the occasional leap second."

=46rom the Rationale:

    "The range [0,60] seconds allows for positive or negative leap seconds."

But, from the section on "Seconds Since the Epoch"

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag=
_04_14

POSIX seconds is defined as:

    tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 +
	(tm_year-70)*31536000 + ((tm_year-69)/4)*86400 -
	((tm_year-1)/100)*86400 + ((tm_year+299)/400)*86400

Summed up with:

    "The relationship between the actual time of day and the current
    value for seconds since the Epoch is unspecified."

Which basically says if you are gonna split hairs on leap seconds
things will be undefined.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem@rellim.com  Tel:+1(541)382-8588

--Sig_/LUARV0+aUXn2n9c5BPfd7LU
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJVihcNAAoJEA0O2UlB0XnYdrkH/0AMuQgn9cKBxvzMHmhiLdAj
R0OnPnVHxKawUeEQ5kZh8jAHkJ/juxEtd2vW0PQzxFtC4qpi1+qGMcKT8v2Z/bmr
VY3+lnU34TiyazcbNnIWHt/4PqsFssbjgBbS3nVrr8uvAuHBQwQFnlDhuMy9cm8h
DWMY+nb6McBU5lP5sA1WerHd6IJTG9b76LRzoy9J40JXJG43L/QXJJqg3Af8A8h8
IrbZRVFt784Nqh8Ne9HZ5qkX++Ieddcoeqlp+pAcpdWvsMDrvRqdt7/6u/d9YH1g
EpT2l3zyUIycsq6NxNa966dp24XWqeil0hhIlP2R75PLIo77tz6X09G28/qm2jk=
=UqXv
-----END PGP SIGNATURE-----

--Sig_/LUARV0+aUXn2n9c5BPfd7LU--

home help back first fref pref prev next nref lref last post