ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:YEARYY/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਆਜ਼ਾਦ ਵਿਸ਼ਵਕੋਸ਼ ਤੋਂ

This template computes the number (between 0 and 99), in its astronomical century, of the year in parameter.

Syntax

[ਸੋਧੋ]
{{YEARYY|year}}
  • The year must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).

Examples

[ਸੋਧੋ]
  • {{YEARYY|1900}} returns 0
  • {{YEARYY|1901}} returns 1
  • {{YEARYY|1909}} returns 9
  • {{YEARYY|1910}} returns 10
  • {{YEARYY|1999}} returns 99
  • {{YEARYY|2000}} returns 0
  • {{YEARYY|2001}} returns 1
  • {{YEARYY|2009}} returns 9
  • {{YEARYY|2010}} returns 10
  • {{YEARYY|2099}} returns 99

See also

[ਸੋਧੋ]
Template:YEARCC
Template:CENTURY
Template:MONTHDAYS
Template:IsLeapYear
Template:JULIANDAY
Template:WEEKDAY
Template:CURRENTYEARYY