Class TzdbZoneRulesCompiler.LeapSecondRule

java.lang.Object
org.threeten.bp.zone.TzdbZoneRulesCompiler.LeapSecondRule
Enclosing class:
TzdbZoneRulesCompiler

static final class TzdbZoneRulesCompiler.LeapSecondRule extends Object
Class representing a rule line in the TZDB file.
  • Field Details

    • leapDate

      final LocalDate leapDate
      The date of the leap second.
    • secondAdjustment

      byte secondAdjustment
      The adjustment (in seconds), +1 means a second is inserted, -1 means a second is dropped.
  • Constructor Details

    • LeapSecondRule

      public LeapSecondRule(LocalDate leapDate, byte secondAdjustment)
      Constructs a rule using fields.
      Parameters:
      leapDate - Date which has gets leap second adjustment (at the end)
      secondAdjustment - +1 or -1 for inserting or dropping a second