Package org.threeten.bp.zone
Class TzdbZoneRulesCompiler.LeapSecondRule
- java.lang.Object
-
- org.threeten.bp.zone.TzdbZoneRulesCompiler.LeapSecondRule
-
- Enclosing class:
- TzdbZoneRulesCompiler
static final class TzdbZoneRulesCompiler.LeapSecondRule extends java.lang.ObjectClass representing a rule line in the TZDB file.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LocalDateleapDateThe date of the leap second.(package private) bytesecondAdjustmentThe adjustment (in seconds), +1 means a second is inserted, -1 means a second is dropped.
-
Constructor Summary
Constructors Constructor Description LeapSecondRule(LocalDate leapDate, byte secondAdjustment)Constructs a rule using fields.
-
-
-
Field Detail
-
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 Detail
-
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
-
-