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