Difference between revisions of "Template:JulianWeekday"
Jump to navigation
Jump to search
imported>Verdy p m |
imported>Verdy p m |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#switch:{{#expr:({{{1}}})mod 7}}|0=Monday|1=Tuesday|2=Wednesday|3=Thursday|4=Friday|5=Saturday|6=Sunday|{{{1}}}}}</includeonly><noinclude> | + | <includeonly>{{#switch:{{#expr:({{{1}}})mod 7}}|0=Monday|1=Tuesday|2=Wednesday|3=Thursday|4=Friday|5=Saturday|6=Sunday|{{{1}}}}}</includeonly><noinclude>{{Template documentation}} |
| − | |||
| − | {{Template documentation}} | ||
Returns the English name of the day of week for the given julian timestamp. | Returns the English name of the day of week for the given julian timestamp. | ||
Revision as of 21:35, 29 April 2006
Template:Template documentation
Returns the English name of the day of week for the given julian timestamp.
For example the current weekday name is {{JulianWeekday|{{JD}}}} = "Wednesday" (UTC time).
- Syntax:
- {{JulianWeekday|timestamp}}
- The timestamp may be any valid numeric expression that is evaluated and rounded to the nearest integer (noon) before being interpreted as a julian day number.
- See also: