자바 시간구하기 채택완료
제이쿼리로 카운트다운을 만들려는데
자바 시간 계산을 어떻게 해야하는지 모르겠네요.
오늘 저녁 9시 시작으로
월요일 오전 11시 50분 종료를 할려고 합니다.
3600 이 1시간인데.....수학에 쥐약이라 ;;;;;;
혹시 이런 시간 계산 간단하게 계산해서 값을 알려주는 사이트 없나요??
답변 3개
아 다 만드셨으면..
간단하게 스크립트로 적어드릴께요..
</span></p><p><span style="color: rgb(0, 0, 0); font-family: 돋움, dotum; font-size: 9pt; line-height: normal; white-space: pre-wrap; background-color: rgb(255, 255, 255);">var start = new Date('2016-05-11 21:00:00');
var end = new Date('2016-05-16 11:50:00');
var diffTimeMilliSeconds = (end - start) / 1000; // milli seconds to seconds</span><span style="font-family: 돋움, dotum; font-size: 9pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> </span></p><p><span style="font-family: 돋움, dotum; font-size: 9pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">console.log(diffTImeMilliSeconds);</span></p><p><span style="color: rgb(0, 0, 0); font-family: 돋움, dotum; font-size: 9pt; line-height: normal; white-space: pre-wrap; background-color: rgb(255, 255, 255);">
jsfiddle 에 참조하시라고 올렸습니다.
https://jsfiddle.net/63qw948x/">https://jsfiddle.net/63qw948x/
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
라이브러리를 하나 추천 드립니다.
http://hilios.github.io/jQuery.countdown/">http://hilios.github.io/jQuery.countdown/
아래는 문서입니다.
http://hilios.github.io/jQuery.countdown/documentation.html">http://hilios.github.io/jQuery.countdown/documentation.html
이걸로 쓰면 굳이 계산 안하셔도 될거 같네요..
참고로 예제는
http://hilios.github.io/jQuery.countdown/examples.html">http://hilios.github.io/jQuery.countdown/examples.html
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인