টেমপ্লেট:Age in years and days

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
নথি আইকন টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

শব্দবিন্যাস

{{Age in years and days|yyyy|mm|dd}} or
{{Age in years and days|yyyy|mm|dd|yyyy2|mm2|dd2}}

উদাহরণ

{{Age in years and days|1989|07|23}} returns "7001240000000000000২৪ বছর, 7002251000000000000২৫১ দিন"
{{Age in years and days|1989|07|23|2003|07|24}} returns "7001140000000000000১৪ বছর, 7000100000000000000১ দিন"

নোট

This template does not check for incorrect input:

{{Age in years and days|1980|07|14|1993|06|233}} returns "7001120000000000000১২ বছর, 7002554000000000000৫৫৪ দিন" (surplus days do not count as extra months)
{{Age in years and days|1980|07|14|1993|88|14}} returns "7001130000000000000১৩ বছর, 7003247100000000000২,৪৭১ দিন" (surplus months do not count as extra years)

Also 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 "7000100000000000000১ বছর, 7000400000000000000৪ দিন"

but split up:

{{Age in years and days|2007|02|27|2007|03|02}} returns "5000000000000000000০ বছর, 7000300000000000000৩ দিন"
{{Age in years and days|2007|03|02|2008|03|02}} returns "7000100000000000000১ বছর, 5000000000000000000০ দিন"

আরও দেখুন