Difference between revisions of "Template:TimeBetween"

From Detective Conan Wiki
 
(One intermediate revision by the same user not shown)
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 }}
Line 19: Line 18:
 
'''Notes:'''  
 
'''Notes:'''  
 
* DateTime2 must be a later date/time than DateTime1
 
* DateTime2 must be a later date/time than DateTime1
* The template presumes both dates/times as in the same time zone.
+
* The template presumes both dates/times as in the same time zone.</noinclude>
 
 
== See also ==
 
* [[Template:timeBetween/YearsBetween]]</noinclude>
 

Latest revision as of 02:53, 26 October 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.