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

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

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

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







1