Editing
Template:Time interval/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Syntax == {{Template shortcuts|t-int}} *<code>{{time interval|''date1''|''date2''|''options''}}</code> There are two positional arguments: ''date1'' and ''date2''. The default for each is the current date and time. The result displays text representing the time interval from ''date1'' to ''date2'' (''date2'' β ''date1''). Dates are [[Coordinated Universal Time|UTC]]βlocal times and time zones are not supported. Dates are checked for validity. For example, 29 February 2000 is accepted, but 29 February 1900 is not a valid date. Each date can include an era or a time, and a variety of formats are accepted. Examples of valid dates are: :1900-02-01 :1900-2-1 :1900-02-01 14:45 :1 FEB 1900 :February 1, 1900 :February 1 1900 14:45 :2:45 pm February 1 1900 :1 February 1900 2:45 p.m. :BC 1 Feb 120 Examples: *<code><nowiki>{{time interval|1 Jan 2001|March 4, 2002}}</nowiki></code> β {{time interval|1 Jan 2001|March 4, 2002}} *<code><nowiki>{{time interval|1 Jan 2001|March 4, 2002|abbr=on}}</nowiki></code> β {{time interval|1 Jan 2001|March 4, 2002|abbr=on}} *<code><nowiki>{{time interval|B.C.E. 1 Feb 120|28 FEB 1900}}</nowiki></code> β {{time interval|B.C.E. 1 Feb 120|28 FEB 1900}}
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information