{"size": 567, "ext": "js", "max_stars_repo_path": "src/realtime_clock.js", "max_stars_repo_name": "ykursav/js-realtime-clock", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/realtime_clock.js", "max_issues_repo_name": "ykursav/js-realtime-clock", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/realtime_clock.js", "max_forks_repo_name": "ykursav/js-realtime-clock", "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": 29.8421052632, "max_line_length": 127, "alphanum_fraction": 0.6331569665}

function getRealDate(){
    const currentDate = new Date();
    
    let hours = currentDate.getHours();
    let minutes = currentDate.getMinutes();
    let seconds = currentDate.getSeconds();
    let amPm = hours >= 12 ? 'pm' : 'am';
    
    hours = hours % 12;
    hours = hours ? hours : 12;
    let strTime = `${String(hours).padStart(2, 0)}:${String(minutes).padStart(2, 0)}:${String(seconds).padStart(2,0)} ${amPm}`;
    document.getElementById('clock').innerText = strTime;
    clock.innerHTML = strTime;
    setTimeout(getRealDate, 1000);
}


getRealDate();