| r5 vs r6 | ||
|---|---|---|
| 1 | [[분류:계산용 틀]]{{{#!if 표준시=표준시??"KST", 시차={"KST":9}, 동작={"time":1,"Time":1,"1":1}, 모드=동작[모드], st='style="display: inline | |
| 1 | [[분류:계산용 틀]]{{{#!if 표준시=표준시??"KST", 시차={"KST":9}, 동작={"time":1,"Time":1,"1":1, 1:1}, 모드=동작[모드], st='style="display: inline; vertical-align: bottom; font-family: monospace;"' | |
| 2 | 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) |
| 3 | 3 | }}}{{{#!if 모드==null |
| 4 | 4 | {{{#!if 알림!=null |
| ... | ... | |
| 11 | 11 | @s@}}}초(@표준시@)입니다.}}}{{{#!if 알림==null |
| 12 | 12 | {{{#!if o=o.toString(), d=d.toString(), o=o.length==1?"0"+o:o, d=d.length==1?"0"+d:d |
| 13 | 13 | }}}@y@-@o@-@d@ @h@:@m@:@s@(@표준시@)}}}}}}{{{#!if 모드==1 |
| 14 | {{{#!if date=date??"", date=="" | |
| 15 | {{{#green '''[안내]'''}}} "날짜" | |
| 16 | 예 : {{{#!wiki @st@ | |
| 17 | \[include(틀:date, {{{#teal | |
| 14 | {{{#!if date=date??날짜??시각??"", date=="" | |
| 15 | {{{#green '''[안내]'''}}} "시각"(또는 "날짜", "date")을 입력하세요. | |
| 16 | 예1 : {{{#!wiki @st@ | |
| 17 | \[include(틀:date, {{{#teal 시각=@y@-@o@-@d@}}})]}}} | |
| 18 | 예2 : {{{#!wiki @st@ | |
| 19 | \[include(틀:date, {{{#teal 시각=@y@-@o@-@d@ @h@:@m@:@s@}}})]}}}}}}}}}[include(틀:date/설명문서)] |