Difference between revisions of "Template:Ctime:W"

From blackwiki
Jump to navigation Jump to search
imported>Orienomesh-w
imported>Orienomesh-w
Line 1: Line 1:
{{#expr:trunc(({{ctime:z|{{{1|{{ctime}}}}}}}- {{#time:w|{{{1|{{ctime}}}}}-{{ctime:z|{{{1|{{ctime}}}}}}}days +24hours}})/7) +({{#time:w|{{{1|{{ctime}}}}}-{{ctime:z|{{{1|{{ctime}}}}}}}days+24hours}}<4)}}<noinclude>[[Category:Chinese Traditional Date and Time]]</noinclude>
+
{{#expr:trunc(({{ctime:z|{{{1|{{ctime}}}}}}}- {{#time:w|{{{1|{{ctime}}}}}-{{ctime:z|{{{1|{{ctime}}}}}}}days +24hours}})/7) +({{#time:w|{{{1|{{ctime}}}}}-{{ctime:z|{{{1|{{ctime}}}}}}}days+24hours}}<4)}}<noinclude>[[Category:Chinese Traditional Date]]<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"aliases": [
 +
"d"
 +
],
 +
"label": "date",
 +
"description": "the date in the Gregorian calendar"
 +
}
 +
},
 +
"description": "to get the week number of the year"
 +
}
 +
</templatedata>
 +
</noinclude>

Revision as of 13:28, 8 February 2015

19

to get the week number of the year

Template parameters

ParameterDescriptionTypeStatus
date1 d

the date in the Gregorian calendar

Unknownoptional