Questions tagged [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.

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.

See http://en.wikipedia.org/wiki/Leap_second

46 questions
2
votes
0 answers

How can I find impending gotchas from the leap second being added in July

A leap second will be added to the calendar on July 1st this year. I am concerned that there could be impending ramifications to our application stack, that we would like to preempt. The Wikipedia article, http://en.wikipedia.org/wiki/Leap_second…
vinnygray
  • 171
  • 1
  • 6
2
votes
1 answer

Why does java tzupdater add leap seconds?

There are some references mentioned that leap seconds are ignored by Java: How can a 1 year old (java) lib correctly perform an UTC Time formatting, considering a newly introduced leap second Do Java system milliseconds take account of leap…
Alex
  • 2,361
  • 1
  • 20
  • 27
2
votes
1 answer

Calendar manipulation running on Amazon linux AMI during June 30, 2015 leap second

Environment: Java 7 on Amazon Linux AMI (patched). Note that NTP is used in this environment. A portion of our code executes scheduled tasks periodically. Generally, the exact time of the execution is not particularly important. However, we have…
Rob
  • 6,247
  • 2
  • 25
  • 33
1
vote
1 answer

How do I convert "2016-Dec-31 23:59:60" UTC time with c++20 chrono to local time and print correct leap seconds?

The point in time "2016-Dec-31 23:59:60" is a valid time. It is 1483228826 seconds after "1970-Jan-1". The ":60" in the seconds display is correct, because a leap second was inserted there (see wikipedia leap seconds). My Question: How do I convert…
Hajo Kirchhoff
  • 1,969
  • 8
  • 17
1
vote
1 answer

How to compare a leapsecond with java.time and Junit?

So I have a LocalDateTime parser which accepts a date as a String. I have wrote several tests for it e.g. checking for leap year and some more. Now I want a JUnit test to check for a leap second. I did some research and found that probably it is not…
internethulk
  • 92
  • 2
  • 15
1
vote
1 answer

Safest and most reliable way to measure short intervals in Python? (cross-platform, cross-hardware, resistant to DST and leap seconds)

The more I read about datetime arithmetic, the bigger a headache I get. There's lots of different kinds of time: Civil time UTC TAI UNIX time system time thread time CPU time And then the clocks can run faster or slower or jump backwards or…
dain
  • 672
  • 1
  • 7
  • 22
1
vote
0 answers

In OpenWRT, clock_gettime() with CLOCK_REALTIME and CLOCK_TAI always get the same results

CLOCK_TAI is basically designed as CLOCK_REALTIME(UTC) + tai_offset. I use the code to test the difference between TAI and REALTIME. But I got difference result on Raspberry pi and OpenWRT. #include #include #ifndef…
Andrew Lin
  • 45
  • 5
1
vote
3 answers

How can a task be scheduled in Java to occur at midnight, even if a leap second has just occurred?

First, definition of "occur at midnight" is that when task is run, new DateTime() or similar will show 00:00:00 or later for the time portion when converted to a human readable format. Important point is that it must not show 23:59:59 of the…
tonicsoft
  • 1,736
  • 9
  • 22
1
vote
0 answers

Does a leap seconds exists in iOS?

I am preparing TCP/IP protocol between I/OS windows and embedded device. Some scenario will send current time as time stamp for some data. I use ISO8601 a format of time in packets. Do I need to solve a leap second in protocol send from iOS to…
Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148
1
vote
1 answer

get leap seconds from gps data (core location) iOS

is it possible to get the used leap seconds from the gps data using core location framework? I need the exact date/time to synchronize an external device over my iPad/iPhone via BTLE. Thanks, Benjamin
Benjamin
  • 31
  • 1
  • 2
0
votes
0 answers

MySQL 8 leap second and daylight saving time (DST) time time_zone_name table

When I issue this statement: SELECT * FROM mysql.time_zone_name WHERE `name` like '%london%'; I get this list: +---------------------+--------------+ | Name | Time_zone_id | +---------------------+--------------+ | Europe/London …
Jimmix
  • 5,644
  • 6
  • 44
  • 71
0
votes
2 answers

Is there any time format strictly based off of the passage of time, instead of the day night cycle?

So I just learned about leap seconds and at first I thought "oh, well just use the unix timestamp" then I read they based the thing off of a day being a specific amount of seconds and adjust leap seconds to keep it aligned with the sun. Da heck?! So…
Sophie McCarrell
  • 2,831
  • 8
  • 31
  • 64
0
votes
1 answer

Can a golang RFC3339Nano timestamp be reliably converted to and from a Unix timestamp?

In my golang application I'm using a Unix second-resolution timestamp (generated with time.Now().UTC().Unix()) as part of a salt in the hash function used for request authentication. There's a desire to store this timestamp in a datastore, where the…
Techrocket9
  • 2,026
  • 3
  • 22
  • 33
0
votes
1 answer

Wrong leap second December 2015

I have found that an extra leap second has been inserted in my system on December 2015. Looking into the /var/log/messages file, I have found that one leap second has been inserted on June 30th 2015, which is correct and another extra on December…
bracana
  • 1,003
  • 2
  • 11
  • 20
0
votes
1 answer

Handling leapseconds under unix

I have a library which needs to know the number of seconds since a previous epoch. This needs to work across leap second boundaries. One of the functions to make it easier for users is to specify the time in unix time - which of course does not take…
Chris
  • 852
  • 1
  • 8
  • 19