Skip to content

Time picker for MIT App Inventor 2 with automatic addition of "0" to hour or minute smaller than 10

License

Notifications You must be signed in to change notification settings

dvirgassner/zero-time-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zero-time-picker

Time picker for MIT App Inventor 2 with automatic addition of a leading zero (0) to hour or minute.

Natively, App Inventor does not add leading zeros in such cases, so if you simply use timepicker.hour or timepicker.minute, you will only be shown a single digit.

This sample MIT App Inventor 2 project nicely displays the selected time over the time picker button. It can be easily ported to displaying the time in a label or any other visual object.

You can easily change the code to add a leading zero only to the minute and not to the hour, if you prefer 09:05 to be displayed as "9:05".

Installation instructions:

  1. Download ZeroTimePicker.aia.
  2. In App Inventor, go to Projects > Import Project (.aia) from my computer.
  3. Select the downloaded file.
  4. Voilà!

About

Time picker for MIT App Inventor 2 with automatic addition of "0" to hour or minute smaller than 10

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published