• गृह पृष्ठ
  • कुनै पनि एक लेख हेर्नुहोस्
  • नजिकैको
  • प्रवेश गर्नुहोस्
  • मेरो अभिरुचिहरू
Donate Now If Wikipedia is useful to you, please give today.
  • विकिपिडियाको बारेमा
  • अस्वीकारोक्तिहरू
विकिपिडिया

ढाँचा:Age in days

  • भाषा
  • अवलोकन
  • सम्पादन गर्नुहोस्
ढाँचा कागजात[हेर्नुहोस्] [सम्पादन गर्नुहोस्] [इतिहास] [ताजा गर्नुहोस्]
WarningThis template is used on approximately २,६०० pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
यो ढाँचाले लुआ प्रयोग गर्दछ:
  • Module:Age
Shortcut
  • {{aid}}

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.

विषयसूची

  • १ Usage
    • १.१ Full dates
    • १.२ Year, month and day
    • १.३ Sorting
    • १.४ Formatting
    • १.५ Showing the unit
    • १.६ Rounding
    • १.७ Time zones
  • २ See also

Usage

सम्पादन गर्नुहोस्

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 ३३५
{{age in days|2007|5|24}} gives ६५७३

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

सम्पादन गर्नुहोस्
विकिमिडिया कमन्समा Template:Age in days सम्बन्धी अन्य सामग्रीहरू रहेका छन्।
  • Wikipedia:Age calculation templates
  • {{Duration in days}}
  • {{Time ago}}

Script error: The function "with collapsible groups" does not exist.

माथिको कागजात ढाँचा:Age in days/कागजातबाट समावेश गरिएको छ। (सम्पादन गर्नुहोस् | इतिहास)
सम्पादकहरूले यस ढाँचाको प्रयोगस्थल (सिर्जना गर्नुहोस् | नक्कल गर्नुहोस्) र परीक्षण (सिर्जना गर्नुहोस्) पृष्ठहरूमा प्रयोग गर्न सक्छन्।
/कागजात उपपृष्ठमा श्रेणीहरू थप्नुहोस्। यस ढाँचाका उपपृष्ठहरू।
"https://ne.wikipedia.org/w/index.php?title=ढाँचा:Age_in_days&oldid=1278256" बाट अनुप्रेषित
अन्तिम सम्पादन ६ मार्च २०२५, १९:५७

भाषाहरू

    • Afrikaans
    • Alemannisch
    • العربية
    • ܐܪܡܝܐ
    • مصرى
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Башҡортса
    • Basa Bali
    • Boarisch
    • Беларуская
    • Беларуская (тарашкевіца)
    • Български
    • भोजपुरी
    • ပအိုဝ်ႏဘာႏသာႏ
    • বাংলা
    • བོད་ཡིག
    • Bosanski
    • Català
    • Нохчийн
    • Cebuano
    • کوردی
    • Čeština
    • Cymraeg
    • Dansk
    • Deutsch
    • Zazaki
    • Dolnoserbski
    • डोटेली
    • ދިވެހިބަސް
    • Ελληνικά
    • English
    • Esperanto
    • Español
    • Eesti
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • Galego
    • ગુજરાતી
    • עברית
    • हिन्दी
    • Hornjoserbsce
    • Magyar
    • Հայերեն
    • Bahasa Indonesia
    • Ilokano
    • Íslenska
    • Italiano
    • 日本語
    • Jawa
    • ქართული
    • Қазақша
    • ភាសាខ្មែរ
    • ಕನ್ನಡ
    • 한국어
    • Къарачай-малкъар
    • Kurdî
    • Кыргызча
    • Latviešu
    • मैथिली
    • Māori
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာမန်
    • मराठी
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • Plattdüütsch
    • Nederlands
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • ਪੰਜਾਬੀ
    • Kapampangan
    • Polski
    • پنجابی
    • پښتو
    • Português
    • Română
    • Русский
    • Русиньскый
    • संस्कृतम्
    • Саха тыла
    • ᱥᱟᱱᱛᱟᱲᱤ
    • Scots
    • سنڌي
    • Srpskohrvatski / српскохрватски
    • တႆး
    • සිංහල
    • Simple English
    • Slovenčina
    • Slovenščina
    • Gagana Samoa
    • Српски / srpski
    • Sunda
    • Svenska
    • Kiswahili
    • தமிழ்
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • ትግርኛ
    • Türkmençe
    • Tok Pisin
    • Türkçe
    • Татарча / tatarça
    • Тыва дыл
    • Удмурт
    • ئۇيغۇرچە / Uyghurche
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Vèneto
    • Tiếng Việt
    • Winaray
    • 吴语
    • მარგალური
    • Yorùbá
    • 中文
    • 文言
    • 閩南語 / Bân-lâm-gú
    • 粵語
    विकिपिडिया
    • Wikimedia Foundation
    • Powered by MediaWiki
    • यो पृष्ठलाई अन्तिमपटक १९:५७, ६ मार्च २०२५ मा परिवर्तन गरिएको थियो।
    • सामाग्री CC BY-SA 4.0 अनुसार उपलब्ध छ, खुलाइएको अवस्था बाहेकको हकमा।
    • गोपनियता नीति
    • विकिपिडियाको बारेमा
    • अस्वीकारोक्तिहरू
    • आचार संहिता
    • विकासकर्ताहरू
    • तथ्याङ्कहरू
    • स्मृतिशेष विवरण
    • प्रयोगका सर्तहरू
    • डेस्कटप