oClock Demo
Below we have two inputs, which are converted to oClock.
First one is 24-hour system and selected time is PM by default.
Second is 12-hour system and default value of time is AM.
Time
Time