"틀:테스트"의 두 판 사이의 차이

6번째 줄: 6번째 줄:


* 2021년 12월 1일 기준 현재 시점까지 며칠째?
* 2021년 12월 1일 기준 현재 시점까지 며칠째?
:{{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-01}}/86400) + 1}}}}일 째
:{{#ifexpr: {{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-01}}/86400)}}}} > 0 | {{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-20}}/86400)}}}} + 1 | {{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-20}}/86400)}} -1 }} }}일 째


* 2021년 현재 기준 12월 20일까지 남은 디데이는?
* 2021년 현재 기준 12월 20일까지 남은 디데이는?
:D-{{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-20}}/86400) + 1}}}}
:{{#ifexpr: {{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-20}}/86400)}}}} > 0 | {{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-20}}/86400)}}}} + 1 | {{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-20}}/86400)}} -1 }} }}
:D-{{#expr:trunc {{#expr: ({{#time: U | now }}/86400) - ({{#time: U | 2021-12-20}}/86400)}}}}

2021년 12월 19일 (일) 04:28 판

서버 기준 Mon, 20 May 2024 18:01:38 +0000

1716228098

1638316800

  • 2021년 12월 1일 기준 현재 시점까지 며칠째?
882 + 1일 째
  • 2021년 현재 기준 12월 20일까지 남은 디데이는?
882 + 1
D-882