r5
r5
1[[분류:계산용 틀]]{{{#!if 표준시=표준시??"KST", 시차={"KST":9}, 동작={"time":1,"Time":1,"1":1}, 모드=동작[모드], st='style="display: inline-block; vertical-align: bottom; font-family: monospace;"'
2}}}{{{#!if t=time(), t+=3600*시차[표준시], d=t%86400, h=d/3600, m=d%3600, s=m%60, m=m/60, h=h.toString(), m=m.toString(), s=s.toString(), h=h.length==1?"0"+h:h, m=m.length==1?"0"+m:m, s=s.length==1?"0"+s:s, d=t/86400, d-=10957, y=2000+(d/146097)*400, d=d%146097, y+=((d-d/146096)/36524)*100, d-=d/146096, d%=36524, y+=(d/1461)*4, d%=1461, y+=(d-1)/365, d=(d-1)%365, c=(y%4==0)?((y%100==0)?((y%400==0)?1:0):1):0, d+=1, o=1+(d>31?1:0)+(d>59+c?1:0)+(d>90+c?1:0)+(d>120+c?1:0)+(d>151+c?1:0)+(d>181+c?1:0)+(d>212+c?1:0)+(d>243+c?1:0)+(d>273+c?1:0)+(d>304+c?1:0)+(d>334+c?1:0), d-=(d>31?31:0)+(d>59+c?28+c:0)+(d>90+c?31:0)+(d>120+c?30:0)+(d>151+c?31:0)+(d>181+c?30:0)+(d>212+c?31:0)+(d>243+c?31:0)+(d>273+c?30:0)+(d>304+c?31:0)+(d>334+c?30:0)
r4
3}}}{{{#!if 모드==null
4{{{#!if 알림!=null
r2
5현재시각은 {{{#!wiki @st@
r1
6@y@}}}년 {{{#!wiki @st@
7@o@}}}월 {{{#!wiki @st@
8@d@}}}일, {{{#!wiki @st@
9@h@}}}시 {{{#!wiki @st@
10@m@}}}분 {{{#!wiki @st@
r5
11@s@}}}초(@표준시@)입니다.}}}{{{#!if 알림==null
r2
12{{{#!if o=o.toString(), d=d.toString(), o=o.length==1?"0"+o:o, d=d.length==1?"0"+d:d
r5
13}}}@y@-@o@-@d@ @h@:@m@:@s@(@표준시@)}}}}}}{{{#!if 모드==1
14{{{#!if date=date??"", date==""
15{{{#green '''[안내]'''}}} "날짜"를 입력하세요.
16예 : {{{#!wiki @st@
17\[include(틀:date, {{{#teal 날짜=@y@-@m@-@d@}}})]}}}}}}}}}