ಟೆಂಪ್ಲೇಟು:Age in years, months, weeks and days: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ
Content deleted Content added
Waldyrious (ಚರ್ಚೆ | ಕಾಣಿಕೆಗಳು) same here... |
Waldyrious (ಚರ್ಚೆ | ಕಾಣಿಕೆಗಳು) this shall make it work better. still need to put weeks here |
||
೧ ನೇ ಸಾಲು:
{{For year month day/display
<includeonly>{{#ifexpr: {{{year2 | {{CURRENTYEAR}} }}} - {{{year1 | {{CURRENTYEAR}} }}} > 0▼
|years={{#expr: {{{year2 | {{CURRENTYEAR}} }}} - {{{year1 | {{#time:Y|-1 year}} }}} - {{#ifexpr: {{{month2 | {{CURRENTMONTH}} }}} > {{{month1 | {{#time:m|-1 month}} }}}
|0
|{{#ifexpr: {{{month2 | {{CURRENTMONTH}} }}} < {{{month1 | {{#time:m|-1 month}} }}}
|1
▲
|1
|month1 = {{{month1 | {{CURRENTMONTH}} }}}▼
}}
}}
}}}}
|months={{#expr: {{{month2 | {{CURRENTMONTH}} }}} - {{{month1 |
|{{#ifexpr:
|0
}}
|{{#ifexpr: {{{month2 | {{CURRENTMONTH}} }}} > {{{month1 | {{#time:m|-1 month}} }}}
|-1
|11
}}
}}}}
|days={{#expr: {{{day2 | {{CURRENTDAY}} }}} - {{{day1 | {{#time:d|-1 day}} }}} +
|0
|1|2|4|6|8|9|11 = 31
|28
}}
}}
}}}}
}}<noinclude>
This template returns the number of months, weeks and days that have elapsed between two dates.
[[Category:Date mathematics templates|{{PAGENAME}}]]
|