틀:날짜초를초로변환: 두 판 사이의 차이
둘러보기로 이동
검색으로 이동
백괴게임>Bd3076 편집 요약 없음 |
백괴게임>Bd3076 편집 요약 없음 |
||
16번째 줄: | 16번째 줄: | ||
{{#vardefine:year|{{#sub:19700101000001|0|4}}}} {{변수표시|year}} | {{#vardefine:year|{{#sub:19700101000001|0|4}}}}{{변수표시|year}} | ||
{{#vardefine:month|{{#sub:19700101000001|4|2}}}} | {{#vardefine:month|{{#sub:19700101000001|4|2}}}}{{변수표시|month}} | ||
{{#vardefine:day|{{#sub:19700101000001|6|2}}}} | {{#vardefine:day|{{#sub:19700101000001|6|2}}}}{{변수표시|day}} | ||
{{#vardefine:hour|{{#sub:19700101000001|8|2}}}} | {{#vardefine:hour|{{#sub:19700101000001|8|2}}}}{{변수표시|hour}} | ||
{{#vardefine:minute|{{#sub:19700101000001|10|2}}}} | {{#vardefine:minute|{{#sub:19700101000001|10|2}}}}{{변수표시|minute}} | ||
{{#vardefine:second|{{#sub:19700101000001|12|2}}}} | {{#vardefine:second|{{#sub:19700101000001|12|2}}}}{{변수표시|second}} | ||
{{#vardefine:year|{{#expr:{{#var:year}}-1970}}}} | {{#vardefine:year|{{#expr:{{#var:year}}-1970}}}}{{변수표시|year}} | ||
{{#vardefine:month|{{#expr:{{#var:month}}-1}}}} | {{#vardefine:month|{{#expr:{{#var:month}}-1}}}}{{변수표시|month}} | ||
{{#vardefine:day|{{#expr:{{#var:day}}-1}}}} | {{#vardefine:day|{{#expr:{{#var:day}}-1}}}}{{변수표시|day}} | ||
{{#vardefine:leapyear|{{#expr:({{#var:year}}+2)/4 round 0}}}} | {{#vardefine:leapyear|{{#expr:({{#var:year}}+2)/4 round 0}}}}{{변수표시|leapyear}} | ||
{{#vardefine:totaldays|{{#expr:{{#var:year}}*365+{{월별누적일|{{#var:month}}}}+{{#var:day}}+{{#var: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: | {{#vardefine:totalsecond|{{#expr:{{#var:totaldays}}*86400+{{#var:hour}}*3600+{{#var:minute}}*60+{{#var:second}}}}}}{{#var:totalsecond}} | ||
</noinclude> | </noinclude> |
2018년 3월 2일 (금) 21:24 판
예시: {{날짜초를초로변환|19700101000001}}
year = 1970
month = 01
day = 01
hour = 00
minute = 00
second = 01
year = 0
month = 0
day = 0
leapyear = 1
totaldays = 1
86401