Setting minute increment size for datepicker
rgorinstein last edited by
I’d like to be able to alter the datepicker so the minute increments are only shown as 5- or 15-minute increments rather than 1-minute increments as it defaults. In Calendar.app, for example, the iOS time picker defaults to 5-minute increments. Is there any way to achieve this?
Thanks in advance!
JonB last edited by
I haven't tried it but
Attribute of the picker objc_instance should do it.
JonB last edited by JonB
d=ui.DatePicker() d.mode=ui.DATE_PICKER_MODE_DATE_AND_TIME d.objc_instance.minuteInterval=5 d.bg_color='white' d.present()