Difference between revisions of "Template:JulianWeekday"
Jump to navigation
Jump to search
imported>Verdy p m |
imported>Verdy p m |
||
| Line 2: | Line 2: | ||
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. | ||
| − | |||
| − | |||
; Syntax<nowiki>:</nowiki> | ; Syntax<nowiki>:</nowiki> | ||
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''timestamp''<tt><nowiki>}}</nowiki></tt> | : <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''timestamp''<tt><nowiki>}}</nowiki></tt> | ||
* 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. | * 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. | ||
| + | |||
| + | ; Examples<nowiki>:</nowiki> | ||
| + | * The current weekday name (UTC time) is <nowiki>{{JulianWeekday|{{JD}}}}</nowiki> = "{{JulianWeekday|{{JD}}}}". | ||
| + | * In the next 12 hours it will be <nowiki>{{JulianWeekday|{{JD}}+0.5}}</nowiki> = "{{JulianWeekday|{{JD}}+0.5}}". | ||
| + | * In the next 24 hours it will be <nowiki>{{JulianWeekday|{{JD}}+1}}</nowiki> = "{{JulianWeekday|{{JD}}+1}}". | ||
; See also<nowiki>:</nowiki> | ; See also<nowiki>:</nowiki> | ||
Revision as of 21:39, 29 April 2006
Template:Template documentation
Returns the English name of the day of week for the given julian timestamp.
- 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.
- Examples:
- The current weekday name (UTC time) is {{JulianWeekday|{{JD}}}} = "Wednesday".
- In the next 12 hours it will be {{JulianWeekday|{{JD}}+0.5}} = "Thursday".
- In the next 24 hours it will be {{JulianWeekday|{{JD}}+1}} = "Thursday".
- See also: