တမ်းပလိတ်:Age in years and days/doc
ပုံပန်းသွင်ပြင်
| ဤစာမျက်နှာသည် တမ်းပလိတ်:Age in years and days တမ်းပလိတ်၏ အသုံးပြုနည်း လက်စွဲ (documentation) စာမျက်နှာခွဲ (subpage) တစ်ခုဖြစ်သည်။ ဤစာမျက်နှာတွင် မူရင်း တမ်းပလိတ် စာမျက်နှာ၏ အစိတ်အပိုင်း-မဟုတ်သော အသုံးပြုပုံပြုနည်းနှင့်သက်ဆိုင်သည့် သတင်းအချက်အလက်များ၊ ကဏ္ဍများနှင့် အခြားအချက်အလက်များ ပါဝင်နေနိုင်သည်။ |
အသုံးပြုပုံ
[ပြင်ဆင်ရန်]Syntax
[ပြင်ဆင်ရန်]{{Age in years and days|date}}or{{Age in years and days|date 1|date 2}}
Examples
[ပြင်ဆင်ရန်]{{Age in years and days|15 May 2010}}returns "ဖော်ပြချက် အမှား - နားမလည်သော ပုဒ်ဖြတ် စာလုံး "၁"။"{{Age in years and days|12 Aug 2003|24 Sep 2011}}returns "ဖော်ပြချက် အမှား - နားမလည်သော ပုဒ်ဖြတ် စာလုံး "၁"။"
Entering year, month and day
[ပြင်ဆင်ရန်]Syntax
[ပြင်ဆင်ရန်]{{Age in years and days|yyyy|mm|dd}}or{{Age in years and days|yyyy|mm|dd|yyyy2|mm2|dd2}}
Examples
[ပြင်ဆင်ရန်]{{Age in years and days|1989|07|23}}returns "၃၆ နှစ်၊ ၁၀၃ ရက်"{{Age in years and days|1989|07|23|2003|07|24}}returns "၁၄ နှစ်၊ ၁ ရက်"
Note
[ပြင်ဆင်ရန်]This template does not check for incorrect input when entering year, month and day.
{{Age in years and days|1980|07|14|1993|06|233}}returns "၁၂ နှစ်၊ ၅၅၄ ရက်" (surplus days do not count as extra months){{Age in years and days|1980|07|14|1993|88|14}}returns "၁၃ နှစ်၊ ၂၄၇၁ ရက်" (surplus months do not count as extra years)
Using "and" as separator
[ပြင်ဆင်ရန်]The default is to separate years and days using a comma. To use "and" instead use |sep=and.
{{Age in years and days|October 13, 1993|November 20, 2000|sep=and}}returns "ဖော်ပြချက် အမှား - နားမလည်သော ပုဒ်ဖြတ် စာလုံး "၉"။"
Note
[ပြင်ဆင်ရန်]Note that due to leap years, the measure "years and days" fails to be fully additive. The following example is not an error, but each calculation uses a different definition of "year", either 365 days or 366:
{{Age in years and days|2007|02|27|2008|03|02}}returns "၁ နှစ်၊ ၄ ရက်"
but split up:
{{Age in years and days|2007|02|27|2007|03|02}}returns "၃ ရက်"{{Age in years and days|2007|03|02|2008|03|02}}returns "၁ နှစ်၊ ၀ ရက်"