"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class TimeHelper {
    static convert24To12hr(time) {
        const numberTime = Number.parseInt(time, 10);
        const AMPM = Math.floor(numberTime / 1200) === 1 ? 'PM' : 'AM';
        let hours = Math.floor((numberTime % 1200) / 100);
        if (hours === 0) {
            hours = 12;
        }
        const minutes = `${numberTime % 100}`.padStart(2, '0');
        return `${hours}:${minutes} ${AMPM}`;
    }
}
exports.default = TimeHelper;
//# sourceMappingURL=TimeHelper.js.map