Package org.threeten.bp.zone
Class TzdbZoneRulesCompiler.LeapSecondRule
java.lang.Object
org.threeten.bp.zone.TzdbZoneRulesCompiler.LeapSecondRule
- Enclosing class:
- TzdbZoneRulesCompiler
Class representing a rule line in the TZDB file.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final LocalDateThe date of the leap second.(package private) byteThe adjustment (in seconds), +1 means a second is inserted, -1 means a second is dropped. -
Constructor Summary
ConstructorsConstructorDescriptionLeapSecondRule(LocalDate leapDate, byte secondAdjustment) Constructs a rule using fields. -
Method Summary
-
Field Details
-
leapDate
The date of the leap second. -
secondAdjustment
byte secondAdjustmentThe adjustment (in seconds), +1 means a second is inserted, -1 means a second is dropped.
-
-
Constructor Details
-
LeapSecondRule
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
-