틀:날짜초를초로변환: 두 판 사이의 차이

리버티게임, 모두가 만들어가는 자유로운 게임
백괴게임>Bd3076
편집 요약 없음
백괴게임>Bd3076
편집 요약 없음
13번째 줄: 13번째 줄:
{{#vardefine:totalsecond|{{#expr:{{#var:totaldays}}*86400+{{#var:hour}}*3600+{{#var:minute}}*60+{{#var:second}}}}}}{{#var:totalsecond}}
{{#vardefine:totalsecond|{{#expr:{{#var:totaldays}}*86400+{{#var:hour}}*3600+{{#var:minute}}*60+{{#var:second}}}}}}{{#var:totalsecond}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>
<noinclude>예시: {{틀변수|날짜초를초로변환|19700101000001}}
<noinclude>예시: {{틀변수|날짜초를초로변환|19700101000001}} {{날짜초를초로변환|197001010000001}}
 
 
{{#vardefine:year|{{#sub:19700101000001|0|4}}}}{{변수표시|year}}
{{#vardefine:month|{{#sub:19700101000001|4|2}}}}{{변수표시|month}}
{{#vardefine:day|{{#sub:19700101000001|6|2}}}}{{변수표시|day}}
{{#vardefine:hour|{{#sub:19700101000001|8|2}}}}{{변수표시|hour}}
{{#vardefine:minute|{{#sub:19700101000001|10|2}}}}{{변수표시|minute}}
{{#vardefine:second|{{#sub:19700101000001|12|2}}}}{{변수표시|second}}
{{#vardefine:year|{{#expr:{{#var:year}}-1970}}}}{{변수표시|year}}
{{#vardefine:month|{{#expr:{{#var:month}}-1}}}}{{변수표시|month}}
{{#vardefine:day|{{#expr:{{#var:day}}-1}}}}{{변수표시|day}}
{{#vardefine:leapyear|{{#expr:({{#var:year}})/4 round 0}}}}{{변수표시|leapyear}}
{{#vardefine:totaldays|{{#expr:{{#var:year}}*365+{{월별누적일|{{#var:month}}}}+{{#var:day}}+{{#var:leapyear}}}}}}{{변수표시|totaldays}}
{{#vardefine:totalsecond|{{#expr:{{#var:totaldays}}*86400+{{#var:hour}}*3600+{{#var:minute}}*60+{{#var:second}}}}}}{{#var:totalsecond}}
</noinclude>
</noinclude>

2018년 3월 2일 (금) 21:27 판

예시: {{날짜초를초로변환|19700101000001}}






86400