ទំព័រគំរូ:CURRENTWEEKDATE
២០២៤-W-[expression " (((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0) -((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0) +((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0) +((((១១)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(៧)-32167 )mod7+1" in DOW gives system message "Expression error: Unrecognized punctuation character "២"."]
The template returns today's date on the ISO 8601 weekformat YYYY-Www-D. Note that the year is the ISO year.
Examples
កែប្រែ"{{CURRENTWEEKDATE}}"
gives "២០២៤-W-[expression "
(((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0) -((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0) +((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0) +((((១១)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(៧)-32167 )mod7+1" in DOW gives system message "Expression error: Unrecognized punctuation character "២"."]" [១]
See also
កែប្រែ- Template:ISOWEEKDATE som også tillater angivelse av tid
- Template:CURRENTISOYEAR
"{{CURRENTISOYEAR}}"
gives "២០២៤" [២] - Template:CURRENTISOWEEK
"{{CURRENTISOWEEK}}"
gives "" [៣] - Template:CURRENTISOWEEKDAY
"{{CURRENTISOWEEKDAY}}"
gives "[expression "
(((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0) -((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0) +((((២០២៤)*12+(១១)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0) +((((១១)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(៧)-32167 )mod7+1" in DOW gives system message "Expression error: Unrecognized punctuation character "២"."]" [៤]
- Template:ISOYEAR
- Template:ISOWEEK
- Template:ISOWEEKDAY
- Template:ISOWEEKDATE
- Template:CURRENTISODATE
"{{CURRENTISODATE}}"
gives "២០២៤-១១-0៧" [៥]