달력및 시간
Javascript2016. 6. 1. 20:07
setCal()function getTime(){var now = new Date()var hour = now.getHours()var minute = now.getMinutes()now = nullvar ampm = ""if (hour >= 12){hour -= 12ampm = "PM"}elseampm = "AM"hour = (hour == 0) ? 12 : hour if (minute minute = "0" + minutereturn hour + ":" + minute + " " + ampm} function leapYear(year){if (year % 4 == 0)return true/* else */return false} function getDays(month, year){var ar = n..