Interface LeapSecondEvent


public interface LeapSecondEvent

This interface describes that during the last minute of a given calendar day an UTC-leapsecond was either introducted or left out.

Example: If the day is given as [1972-06-30] then this means a leapsecond in the last minute short before midnight of following day, namely at [1972-06-30T23:59:60Z].

Author:
Meno Hochschild
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the date of leapsecond introduction.
    int
    Returns the leapsecond shift of this event only.
  • Method Details

    • getDate

      GregorianDate getDate()

      Returns the date of leapsecond introduction.

      Returns:
      gregorian date where a leap second is inserted at the end
    • getShift

      int getShift()

      Returns the leapsecond shift of this event only.

      Note: Until the year 2014 there was only the shift of one second extra so the return value of this method is always +1. But negative leapseconds with the shift -1 remain theoretically possible according to UTC definition.

      Returns:
      event-related shift in seconds (!= 0)