Template:Year from day offset: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
No edit summary
Omniplex (talk | contribs)
prepare optional subst (not yet fully supported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{JULIANDAY.YEAR|{{CURRENTJULIANDAY}}+{{{1}}}}}<noinclude>
{{{{{subst|}}}JULIANDAY.YEAR|{{{{{subst|}}}YMD2MJD|subst={{{subst|}}}}}+2400000.5+{{{1|0.5}}}|subst={{{subst|}}}}}<noinclude>


== Documentation ==
== Documentation ==
This template calculates the year that will result from a given positive or negative offset in days. [[Category:Date computing template|Year from day offset]]
This template calculates the year that will result from a given positive or negative offset in days (for years BC just extrapolated).

Examples:
Examples:
*{{Year from day offset|-1}}
*{{Year from day offset|-1}}
Line 11: Line 11:
*{{Year from day offset|-10000}}
*{{Year from day offset|-10000}}
*{{Year from day offset|-100000}}
*{{Year from day offset|-100000}}
*{{Year from day offset|-1000000}}
*{{Year from day offset|-10000000}}
*{{Year from day offset|-100000000}}
*{{Year from day offset|-1000000000}}

[[Category:Date computing template|Year from day offset]]
</noinclude>
</noinclude>

Latest revision as of 19:08, 4 July 2006

2024

Documentation[edit]

This template calculates the year that will result from a given positive or negative offset in days (for years BC just extrapolated).

Examples:

  • 2024
  • 2024
  • 2024
  • 2021
  • 1997
  • 1750
  • -714
  • -25759
  • -272171
  • -2736287