Difference between revisions of "Template:CURRENTINTERNETTIME"

From blackwiki
Jump to navigation Jump to search
imported>Thesevenseas
(Completed Template Fix)
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
@{{#ifexpr:(trunc((23*3600+00*60+00)/86.4+41.67) mod 1000)<100|0}}{{#ifexpr:(trunc((23*3600+00*60+00)/86.4+41.67) mod 1000)<10|0}}{{#expr:(trunc(23*3600+00*60+00)/86.4+41.67) mod 1000}}<noinclude>
+
@{{#ifexpr:(trunc(({{#time:G}}*3600+{{#time:i}}*60+{{#time:s}})/86.4+41.67) mod 1000)<100|0}}{{#ifexpr:(trunc(({{#time:G}}*3600+{{#time:i}}*60+{{#time:s}})/86.4+41.67) mod 1000)<10|0}}{{#expr:(trunc({{#time:G}}*3600+{{#time:i}}*60+{{#time:s}})/86.4+41.67) mod 1000}}<noinclude>
 
----
 
----
 
This template returns the current [[Swatch Internet Time]] between 000 and 999. @000 means 23:00 UTC and @999 means 22:59 UTC. It is independent of local solar or legal time, and does not follow any summer saving time scheme.
 
This template returns the current [[Swatch Internet Time]] between 000 and 999. @000 means 23:00 UTC and @999 means 22:59 UTC. It is independent of local solar or legal time, and does not follow any summer saving time scheme.
  
 
; Syntax<nowiki>:</nowiki>
 
; Syntax<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></tt>
+
: <kbd><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></kbd>
  
 
; See also<nowiki>:</nowiki>
 
; See also<nowiki>:</nowiki>
Line 11: Line 11:
 
[[Category:Date-computing templates based on current time|{{PAGENAME}}]]
 
[[Category:Date-computing templates based on current time|{{PAGENAME}}]]
  
[[fr:CURRENTINTERNETTIME]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 05:40, 5 August 2018

@722


This template returns the current Swatch Internet Time between 000 and 999. @000 means 23:00 UTC and @999 means 22:59 UTC. It is independent of local solar or legal time, and does not follow any summer saving time scheme.

Syntax:
{{CURRENTINTERNETTIME}}
See also:
Template:CURRENTMINUTE