r7 vs r8
11
[[분류:계산용 틀]]{{{#!if 표준시=표준시??"KST", 시차={"KST":9}, 동작={"time":1,"Time":1,"1":1, 1:1}, 모드=동작[모드], st='style="display: inline; vertical-align: bottom; font-family: monospace;"'
22
}}}{{{#!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)
3
##"y"ear, m"o"nth, "d"ay, "h"our, "m"inute, "s"econd
34
}}}{{{#!if 모드==null
45
{{{#!if 알림!=null
56
현재시각은 {{{#!wiki @st@
......
1819
예2 : {{{#!wiki @st@
1920
\[include(틀:date, {{{#teal 시각=@y@-@o@-@d@ @h@:@m@:@s@}}})]}}}
2021
예3 : {{{#!wiki @st@
21
\[include(틀:date, {{{#teal 년=@y@}}}, {{{#teal 월=@o@}}}, {{{#teal 일=@d@}}})]}}}}}}}}}[include(틀:date/설명문서)]
22
\[include(틀:date, {{{#teal 년=@y@}}}, {{{#teal 월=@o@}}}, {{{#teal 일=@d@}}})]}}}}}}{{{#!if date!=""
23
##"c"olon, d"a"sh
24
{{{#!if c=date.indexOf(":"), a=date.indexOf("-"), (c==-1)&&(a==-1)
25
}}}}}}}}}[include(틀:date/설명문서)]