সাঁচ:Age in years and days/doc

অসমীয়া ৱিকিপিডিয়াৰ পৰা

শব্দবিন্যাস[সম্পাদনা কৰক]

{{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 "&0000000000000024.00000024 বছৰ, &0000000000000268.000000268 দিন"
{{Age in years and days|1989|07|23|2003|07|24}} returns "&0000000000000014.00000014 বছৰ, &0000000000000001.0000001 day"

টোকা[সম্পাদনা কৰক]

This template does not check for incorrect input:

{{Age in years and days|1980|07|14|1993|06|233}} returns "&0000000000000012.00000012 বছৰ, &0000000000000554.000000554 দিন" (surplus days do not count as extra months)
{{Age in years and days|1980|07|14|1993|88|14}} returns "&0000000000000013.00000013 বছৰ, &0000000000002471.0000002,471 দিন" (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 "&0000000000000001.0000001 year, &0000000000000004.0000004 দিন"

but split up:

{{Age in years and days|2007|02|27|2007|03|02}} returns "&-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.0000000 বছৰ, &0000000000000003.0000003 দিন"
{{Age in years and days|2007|03|02|2008|03|02}} returns "&0000000000000001.0000001 year, &-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.0000000 দিন"

আৰু চাওক[সম্পাদনা কৰক]