Convert hours in 24 hours time into 12 hours time
An example showing how to convert hours in 24 hours time into 12 hours time.
var dateTime = tizen.time.getCurrentDateTime();
var hours = dateTime.getHours();
if (hours > 12) {
hours -= 12;
}
if (hours === 0) {
hours = 12;
}