Difference between revisions of "Template:JDtoGreg/doc"

From blackwiki
Jump to navigation Jump to search
imported>Quarl
(«new: +(75 words)»)
 
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Documentation subpage}}
 +
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
Format a [[Julian day]] timestamp to the complete English date and time in the [[Gregorian calendar]] with links.
 
Format a [[Julian day]] timestamp to the complete English date and time in the [[Gregorian calendar]] with links.
  
 
; Syntax<nowiki>:</nowiki>
 
; Syntax<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki></tt>''julian day number''<tt><nowiki>}}</nowiki></tt>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki></code>''julian day number''<code><nowiki>}}</nowiki></code>
 
* The ''julian day number'' is an integer at noon (12:00:00), the same UTC day starts at the ''julian day number'' minus 0.5.
 
* The ''julian day number'' is an integer at noon (12:00:00), the same UTC day starts at the ''julian day number'' minus 0.5.
  
 
; Example<nowiki>:</nowiki>
 
; Example<nowiki>:</nowiki>
* “<tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|{{CURRENTJULIANDAY}}}}</nowiki></tt>” returns “{{JDtoGreg|{{CURRENTJULIANDAY}}}}” (UTC time)
+
* “<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|{{CURRENTJULIANDAY}}}}</nowiki></code>” returns “{{JDtoGreg|{{CURRENTJULIANDAY}}}}” (UTC time)
  
 
; See also<nowiki>:</nowiki>
 
; See also<nowiki>:</nowiki>
Line 16: Line 18:
 
* [[Template:CURRENTJULIANDAY]]
 
* [[Template:CURRENTJULIANDAY]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 +
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Date mathematics templates|{{PAGENAME}}]]
 
[[Category:Date mathematics templates|{{PAGENAME}}]]
</includeonly>
+
 
 +
}}</includeonly>

Latest revision as of 02:22, 3 June 2020

Format a Julian day timestamp to the complete English date and time in the Gregorian calendar with links.

Syntax:
{{JDtoGreg|julian day number}}
  • The julian day number is an integer at noon (12:00:00), the same UTC day starts at the julian day number minus 0.5.
Example:
  • {{JDtoGreg|{{CURRENTJULIANDAY}}}}” returns “Tuesday, January 13|13 January 2026 Expression error: Unrecognized punctuation character "[".Template:Mod:Expression error: Unrecognized punctuation character "[".Template:Mod” (UTC time)
See also: