మూస:Age in years and days/doc

వికీపీడియా నుండి
Jump to navigation Jump to search

This template returns the number of full years and surplus days between two specified dates. If only one date is entered, the template returns the number of full years and surplus days between the specified date and today's date.

This template does not generate a sort key. In a sortable table, use {{ayd}} which redirects to {{age in years and days nts}}.

Usage[మార్చు]

Each date can be entered in a single parameter, or each date can be entered as three parameters: year, month, day.

  • {{age in years and days|15 May 2010}} → 9 years, 116 days
  • {{age in years and days|12 Aug 2003|24 Sep 2011}} → 8 years, 43 days
  • {{age in years and days|1989|7|23}} → 30 years, 47 days
  • {{age in years and days|1989|7|23|2003|7|24}} → 14 years, 1 day
  • {{age in years and days|2007|03|02|2008|03|02}} → 1 year, 0 days

An error is shown if an entered date is not valid (1900 was not a leap year).

  • {{age in years and days|31 January 1892|29 February 1900}}Error: Second date should be year, month, day

Options[మార్చు]

The default is to separate years and days with a comma. The separator is "and" if |sep=and is used.

The default calculates an age—the day of the second date is not included in the calculation. A duration including the second date is calculated if |duration=on is used.

  • {{age in years and days|1 Jan 2011|31 Dec 2012}} → 1 year, 365 days
  • {{age in years and days|1 Jan 2011|31 Dec 2012|sep=and}} → 1 year and 365 days
  • {{age in years and days|1 Jan 2011|31 Dec 2012|duration=on}} → 2 years, 0 days
https://te.wikipedia.org/wiki/%E0%B0%AE%E0%B1%82%E0%B0%B8:Age_in_years_and_days/doc
te.wikipedia.org
crawl=CC-MAIN-2019-39
56474
application/http; msgtype=response
sha1:D4QE5C7WBXMMAC6RM4OUTAJQBS2F7YSB
<urn:uuid:c4f043e3-f0e2-40bf-acc1-7443a3c41b18>
2019-09-20T21:22:40Z
208.80.154.224
text/html
sha1:HTVOMZRGEGZ2QYFNM36DOHPVOV6XVEIP
<urn:uuid:e5542c5d-bddf-44e9-a873-7fc447cff428>
https://te.wikipedia.org/wiki/%E0%B0%AE%E0%B1%82%E0%B0%B8:Age_in_years_and_days/doc
response
<urn:uuid:f5cb3b74-957b-4a3d-a505-614b757972e2>
isPartOf: CC-MAIN-2019-39
publisher: Common Crawl
description: Wide crawl of the web for September 2019
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-156.ec2.internal
software: Apache Nutch 1.15 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.1-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/