FreezePeriod
open class FreezePeriod
kotlin.Any | |
↳ | android.app.admin.FreezePeriod |
A class that represents one freeze period which repeats annually. A freeze period has two java.time#MonthDay values that define the start and end dates of the period, both inclusive. If the end date is earlier than the start date, the period is considered wrapped around the year-end. As far as freeze period is concerned, leap year is disregarded and February 29th should be treated as if it were February 28th: so a freeze starting or ending on February 28th is identical to a freeze starting or ending on February 29th. When calulating the length of a freeze or the distance bewteen two freee periods, February 29th is also ignored.
Summary
Public constructors | |
---|---|
FreezePeriod(start: MonthDay!, end: MonthDay!) Creates a freeze period by its start and end dates. |
Public methods | |
---|---|
open MonthDay! |
getEnd() Returns the end date (inclusive) of this freeze period. |
open MonthDay! |
getStart() Returns the start date (inclusive) of this freeze period. |
open String |
toString() |
Public constructors
FreezePeriod
FreezePeriod(
start: MonthDay!,
end: MonthDay!)
Creates a freeze period by its start and end dates. If the end date is earlier than the start date, the freeze period is considered wrapping year-end.
Public methods
getEnd
open fun getEnd(): MonthDay!
Returns the end date (inclusive) of this freeze period.
getStart
open fun getStart(): MonthDay!
Returns the start date (inclusive) of this freeze period.
toString
open fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |