Function getTimeStringSeconds(seconds)
Dim hourTxt, minTxt, secTxt
If seconds > 0 Then
If fix(seconds / 3600) > 0 Then
hourTxt = fix(seconds / 3600)
If Len(hourTxt) = 1 Then hourTxt = "0" & hourTxt
Else
hourTxt = "00"
End If
If fix((seconds MOD 3600) / 60) > 0 Then
minTxt = fix(((seconds) MOD 3600) / 60)
If Len(minTxt) = 1 Then minTxt = "0" & minTxt
Else
minTxt = "00"
End If
If fix(seconds MOD 60) > 0 Then
secTxt = (seconds MOD 60)
If Len(secTxt) = 1 Then secTxt = "0" & secTxt
Else
secTxt = "00"
End If
End If
getTimeStringSeconds = hourTxt & ":" & minTxt & ":" & secTxt
End Function
자바스크립트
'[ Web 관련 ] > asp' 카테고리의 다른 글
IIS 7.5 오류페이지 설정 방법 (ASP/ASPX) (0) | 2018.09.27 |
---|---|
파일 업로드 제한 늘리기, IIS설정 (WIN2012, ABCUpload4 기준) (0) | 2018.09.19 |
강제 파일 다운로드 하기 (0) | 2018.08.31 |
asp 날짜 형식 변경 (0) | 2018.08.22 |
ASP 배열을 자바스크립트 배열로 변경 (0) | 2018.08.20 |