"आकृति:Age in weeks" के अवतरणसभमे अन्तर
Content deleted Content added
Biplab Anand (वार्ता | योगदान) अ १५ सुधार सभ en:Template:Age_in_weeks सँ: Importing |
Biplab Anand (वार्ता | योगदान) अ सुधार |
||
पङ्क्त्ति १:
<noinclude>This template returns the number of weeks that have elapsed between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: '''<nowiki>{{Age in weeks|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>'''
</noinclude><includeonly>{{#expr:floor {{#expr:
(
+ {{Gregorian serial date
|month = {{{month2|{{#invoke:ConvertTime|main|{{CURRENTMONTH}}}}}}}
|day = {{{day2|{{#invoke:ConvertTime|main|{{CURRENTDAY}}}}}}}
|year = {{{year2|{{#invoke:ConvertTime|main|{{CURRENTYEAR}}}}}}}
}}
- {{Gregorian serial date
|month = {{{month1|{{#invoke:ConvertTime|main|{{CURRENTMONTH}}}}}}}
|day = {{{day1|{{#invoke:ConvertTime|main|{{CURRENTDAY}}}}}}}
|year = {{{year1|{{#invoke:ConvertTime|main|{{CURRENTYEAR}}}}}}}
}}
)
/ 7
}} }}</includeonly><noinclude>[[श्रेणी:तिथि आकृतिसभ|{{PAGENAME}}]]
</noinclude>
|