OrreryDateTimePickerState

State for OrreryDateTimePickerDialog: the date (through dateState, with its bounds and disabled dates), the time of day and the visible step. Writes outside 0..23 to hour or 0..59 to minute are ignored. selectedDateTime is a LocalDateTime; attach a TimeZone yourself.

Properties

Link copied to clipboard
Link copied to clipboard
var hour: Int

Hour of day, 0..23.

Link copied to clipboard

Shows the time step on a 24-hour dial (true) or a 12-hour dial with AM/PM (false).

Link copied to clipboard
var minute: Int

Minute of the hour, 0..59.

Link copied to clipboard
val selectedDateTime: LocalDateTime?

The picked date at hour:minute, or null until a date is picked. Snapshot-observable.

Link copied to clipboard

The visible step. Setting DateTimePickerStep.Time before a date is picked is allowed: the Time step then shows its confirm button while selectedDateTime is still null, so handle null in confirmButton.