common.js
// converts 24 hour clock into 12
converts 24 hour clock into 12
converts 24 hour clock into 12
function Get12Hour(hour)
{
    if(hour > 12)
    {
        return hour - 12;
    }
    if(hour == 0)
    {
        return 12;
    }
    return hour;
}
function Get12Hour ( hour ) { if ( hour > 12 ) { return hour - 12 ; } if ( hour == 0 ) { return 12 ; } return hour ; }
converts 24 hour clock into 12
converts 24 hour clock into 12