Difference between revisions of "Template:JDtoGreg/doc"

From blackwiki
Jump to navigation Jump to search
imported>Thetrick
(Added Template:Documentation subpage)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
  
 
; 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 18: Line 18:
 
* [[Template:CURRENTJULIANDAY]]
 
* [[Template:CURRENTJULIANDAY]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- 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 “Wednesday, January 14|14 January 2026 Expression error: Unrecognized punctuation character "[".Template:Mod:Expression error: Unrecognized punctuation character "[".Template:Mod” (UTC time)
See also: