{"size": 738, "ext": "js", "max_stars_repo_path": "src/helper.js", "max_stars_repo_name": "Vurmaz/Weather-App", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/helper.js", "max_issues_repo_name": "Vurmaz/Weather-App", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/helper.js", "max_forks_repo_name": "Vurmaz/Weather-App", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.75, "max_line_length": 85, "alphanum_fraction": 0.6707317073}
function convertKelvinToCelcius (kelvin) {
    return kelvin - 273.15
} 
function unixConverter (item) {
    return new Date(item * 1000)
}
function convertHours (item) {
    const day = item.getHours()
    return day
}
function getDayName (item) {
    return item.toLocaleDateString("en-EN", { weekday: 'long' });
}
function AmPMConverter(date) {
    let hours = date.getHours()
    let minutes = date.getMinutes()
    let converter = hours >= 12 ? 'PM' : 'AM'
    hours = hours % 12
    hours = hours ? hours : 12
    minutes = minutes < 10 ? '0'+ minutes : minutes
    let actualTime = hours + ':' + minutes + ' ' + converter
    return actualTime
}
export { convertKelvinToCelcius,unixConverter,convertHours,getDayName,AmPMConverter }