Difference between revisions of "Template:TimeBetween"
From Detective Conan Wiki
m |
|||
| Line 2: | Line 2: | ||
| Y = {{timeBetween/YearsBetween|{{{2}}}|{{{3}}} }} | | Y = {{timeBetween/YearsBetween|{{{2}}}|{{{3}}} }} | ||
| Error: Invalid returntype | | Error: Invalid returntype | ||
| − | }}</includeonly> | + | }}</includeonly><noinclude>'''Format:''' |
| − | <noinclude>'''Format:''' | ||
<pre> | <pre> | ||
{{timeBetween| ReturnType | DateTime1 | DateTime2 }} | {{timeBetween| ReturnType | DateTime1 | DateTime2 }} | ||
Revision as of 04:22, 20 April 2025
Format:
{{timeBetween| ReturnType | DateTime1 | DateTime2 }}
ReturnType accepts the following values, which are used to control what unit of time is returned by the function (case-sensitive):
- Y
Notes:
- DateTime2 must be a later date/time than DateTime1
- The template presumes both dates/times as in the same time zone.