Difference between revisions of "Template:CURRENTINTERNETTIME"

From blackwiki
Jump to navigation Jump to search
imported>Pathoschild
m (bugfix with zero-padding, rm deprecated template)
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)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
@{{#ifexpr:(({{#time:G}}*3600+{{#time:i}}*60+{{#time:s}})/86.4+41 round 0)<100|0}}{{#expr:({{#time:G}}*3600+{{#time:i}}*60+{{#time:s}})/86.4+41 round 0}}<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 et 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>
: [[Template:CURRENTHOUR]]
 
 
: [[Template:CURRENTMINUTE]]
 
: [[Template:CURRENTMINUTE]]
  
 
[[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

@526


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