The function in this sample time picker application leverages the DateFormatter class and returns an array of objects with formatted time strings (’label’) and a UNIX timestamp representation of the hour:minute values (’data’).
The combo box in the sample binds the array as its data povider. As a proof of concept for the demo I’ve added fields so the minute interval and 12/24 hr clock format can be tweaked. Note the minute interval value must divide into 60 with a whole number quotient or it defaults to 30.




