틀:날짜초를초로변환: 두 판 사이의 차이
백괴게임>Bd3076 편집 요약 없음 |
imported>Js091213 잔글 (Regurus의 편집을 [[특수:기여/imported>Bd3076|imported>Bd3076]]의 마지막 판으로 되돌림) |
||
(사용자 2명의 중간 판 16개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
<onlyinclude><includeonly> | <onlyinclude><includeonly>{{#vardefine:year|{{#sub:{{{1}}}|0|4}}}}{{#vardefine:month|{{#sub:{{{1}}}|4|2}}}}{{#vardefine:day|{{#sub:{{{1}}}|6|2}}}}{{#vardefine:hour|{{#sub:{{{1}}}|8|2}}}}{{#vardefine:minute|{{#sub:{{{1}}}|10|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}})/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> | ||
{{#vardefine:year|{{#sub:{{{1}}}|0|4}}}} | <noinclude>예시: {{틀변수|날짜초를초로변환|19700101000001}} {{날짜초를초로변환|19700101000001}} | ||
{{#vardefine:month|{{#sub:{{{1}}}|4|2}}}} | |||
{{#vardefine:day|{{#sub:{{{1}}}|6|2}}}} | {{틀변수|날짜초를초로변환|20380119031407}} {{날짜초를초로변환|20380119031407}} 이 시간이 특별한 이유는 오버플로우가 일어나기 때문. | ||
{{#vardefine:hour|{{#sub:{{{1}}}|8|2}}}} | </noinclude> | ||
{{#vardefine:minute|{{#sub:{{{1}}}|10|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}} | |||
{{#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}} {{날짜초를초로변환|19700101000001}}</noinclude> |