index.js
function to12Hour(hour) {
        var meridiem = hour < 12 ? 'am' : 'pm';
        return {
            hour: ((hour + 11) % 12 + 1),
            meridiem: meridiem,
            meridian: meridiem
        };
    }
function to12Hour(hour) {
        var meridiem = hour < 12 ? 'am' : 'pm';
        return {
            hour: ((hour + 11) % 12 + 1),
            meridiem: meridiem,
            meridian: meridiem
        };
    }
function to12Hour ( hour ) { var meridiem = hour < 12 ? 'am' : 'pm' ; return { hour : ( ( hour + 11 ) % 12 + 1 ) , meridiem : meridiem , meridian : meridiem } ; }
Convert 24-hour time to 12-hour format.

@param {number} hour Hour to convert (0-23)
@return {object} { hour, meridiem } (meridian is also returned for backwards compatibility)
Convert 24 - hour time to 12 - hour format .