आकृति:Age in days

मैथिली विकिपिडियासँ, एक मुक्त विश्वकोश
Jump to navigation Jump to search


Template documentation[view] [edit] [history] [purge]

Usage[सम्पादन करी]

Inputting dates[सम्पादन करी]

This template returns the number of days between two dates. Dates may be input either as full dates or as year, month and day. Omitted parameters to their current value.

Full dates[सम्पादन करी]

To use, type:

{{age in days|date1|date2}}  (number of days between dates 1 and 2),
{{age in days|date1}} (number of days since date 1) or
{{age in days||date2}} (number of days until date 2)

Examples:

{{age in days|19 Aug 2008|4 Sep 2010}} gives एक्स्प्रेशन गल्ती: अनपेक्षित < अपरेटर।
{{age in days|27 May 2002}} gives एक्स्प्रेशन गल्ती: अनपेक्षित < अपरेटर।
{{age in days||{{#time:j M Y|+ 15 months}}}}  gives एक्स्प्रेशन गल्ती: अनपेक्षित < अपरेटर।

Year, month and day[सम्पादन करी]

To use, type:

{{age in days|year1|month1|day1|year2|month2|day2}}  (number of days between dates 1 and 2),
{{age in days|year1|month1|day1}} (number of days since date 1) or
{{age in days||||year2|month2|day2}} (number of day until date 2)

Or with named parameters:

{{age in days|month1= |day1= |year1= |month2= |day2= | year2= }}  (number of days between dates 1 and 2),
{{age in days|month1= |day1= |year1= }} (number of days since date 1) or
{{age in days|month2= |day2= | year2= }} (number of day until date 2)

Examples:

{{age in days|2007|5|24|2008|4|23}}  gives 335
{{age in days|2007|5|24}} gives 4699

Sorting[सम्पादन करी]

By adding |sortable=on a sort key will be added to the output for use in sortable tables. The sort key is produced by {{nts}} and is based on the SI unit of time (the second).

Formatting[सम्पादन करी]

Three styles of formatting are possible.

|format=raw gives unformatted numbers with hyphens as minus signs[१] (for use in further calculations).
|format=commas  gives numbers formatted with commas (using {{formatnum:}}) and true minus signs.
|format=gaps gives numbers formatted with thin spaces (using {{val}}) and true minus signs.

For reasons of retrospective compatibility, the default when inputting dates as year, month and day is |format=raw; however when inputting dates in full it is |format=commas.

Note
  1. Negative days will occur if the first date is after the second.

Showing the unit[सम्पादन करी]

The default is not to show units. To show the unit ("day", days" or "d") use |show unit=.

|show unit=abbr  adds "d" after the number of days.
|show unit=full adds "day" or "days" after the number of days as appropriate.

Rounding[सम्पादन करी]

The template rounds down to the nearest number of full days.

Time zones[सम्पादन करी]

As noted above, date parameters left undefined default to their current value. Note that this is the current UTC value. Instead of leaving the parameter blank, however, an offset may be added, for example, {{age in days|28 December 2007|+ 5 hours 45 min}} will give the number of days since the king of Nepal was deposed. Note that this will only work when entering full dates (e.g. {{age in days|2007|12|28|+ 5 hours 45 min}} will produce an error message).

See also[सम्पादन करी]
https://mai.wikipedia.org/wiki/%E0%A4%86%E0%A4%95%E0%A5%83%E0%A4%A4%E0%A4%BF:Age_in_days
mai.wikipedia.org
crawl=CC-MAIN-2020-16
107512
application/http; msgtype=response
sha1:PYBGFS2F4VR7WDZBA22VQ5HI7UJHMHAI
<urn:uuid:2794f18a-aaae-439c-a3e2-31caa18267d5>
2020-04-04T10:10:01Z
208.80.154.224
text/html
sha1:J4KKNUEWTEC3QFJVHZHDMUAID53WOMTH
<urn:uuid:13c8031f-fabd-4f30-9682-a0370a79af77>
https://mai.wikipedia.org/wiki/%E0%A4%86%E0%A4%95%E0%A5%83%E0%A4%A4%E0%A4%BF:Age_in_days
response
<urn:uuid:79ebe70f-0085-4b8e-8a32-51082eeba578>
isPartOf: CC-MAIN-2020-16
publisher: Common Crawl
description: Wide crawl of the web for March/April 2020
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-235.ec2.internal
software: Apache Nutch 1.16 (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/