if (sec < 60) {
sec = sec + '초';
} else if (sec < 3600){
sec = Math.floor(sec%3600/60) + '분 ' + sec%60 + '초';
} else {
sec = Math.floor(sec/3600) + '시간 ' + Math.floor(sec%3600/60) + '분 ' + sec%60 + '초';
}


- time to hour minute second




http://hangaebal.blogspot.kr/2014/06/javascript.html

'Blogger 이사' 카테고리의 다른 글

[JSP] JSP 액션 태그 사용  (0) 2016.01.14
[Servlet] Servlet 구동 기본  (0) 2016.01.14
[Javascript] String replaceAll  (0) 2016.01.14
[SQLite] Web SQL search on dates  (0) 2016.01.14
[SQLite] SQLite Syntax Documentation  (0) 2016.01.14

+ Recent posts