<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://zh.enter-politics.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-UTCLiveClock.js</id>
	<title>MediaWiki:Gadget-UTCLiveClock.js - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://zh.enter-politics.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-UTCLiveClock.js"/>
	<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;action=history"/>
	<updated>2026-04-24T04:27:53Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=457&amp;oldid=prev</id>
		<title>2020年6月2日 (二) 02:57 One-Six</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=457&amp;oldid=prev"/>
		<updated>2020-06-02T02:57:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年6月2日 (二) 02:57的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l66&quot; &gt;第66行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第66行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	// Set CSS styles. We do this here instead of on the CSS page because some&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	// Set CSS styles. We do this here instead of on the CSS page because some&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	// wikis load this page directly, without loading the accompanying CSS.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	// wikis load this page directly, without loading the accompanying CSS.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	mw.util.addCSS( '#utcdate a { font-weight:bolder&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;; font-size:120%&lt;/del&gt;; }' );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	mw.util.addCSS( '#utcdate a { font-weight:bolder; }' );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	// Reset whitespace that was set in the peer CSS gadget; this prevents the&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	// Reset whitespace that was set in the peer CSS gadget; this prevents the&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mw-wiki2_:diff::1.12:old-455:rev-457 --&gt;
&lt;/table&gt;</summary>
		<author><name>One-Six</name></author>
	</entry>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=455&amp;oldid=prev</id>
		<title>2020年6月2日 (二) 02:52 One-Six</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=455&amp;oldid=prev"/>
		<updated>2020-06-02T02:52:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年6月2日 (二) 02:52的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot; &gt;第6行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第6行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  *&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  *&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Revision: November 2017&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Revision: November 2017&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; * Tweaked by local sysop on June 2020&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Source: https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.js&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  * Source: https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.js&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  *&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  *&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l45&quot; &gt;第45行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第46行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	var mm = now.getUTCMinutes();&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	var mm = now.getUTCMinutes();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	var ss = now.getUTCSeconds();&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	var ss = now.getUTCSeconds();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss ) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;+ ' UTC'&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	$target.text( time );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	$target.text( time );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mw-wiki2_:diff::1.12:old-432:rev-455 --&gt;
&lt;/table&gt;</summary>
		<author><name>One-Six</name></author>
	</entry>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=432&amp;oldid=prev</id>
		<title>One-Six：导入1个版本：从MW导入小工具</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=432&amp;oldid=prev"/>
		<updated>2020-06-02T02:01:13Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本：从MW导入小工具&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年6月2日 (二) 02:01的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>One-Six</name></author>
	</entry>
	<entry>
		<id>https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=431&amp;oldid=prev</id>
		<title>mw&gt;DannyS712：Remove mediawiki.notify, now available by default</title>
		<link rel="alternate" type="text/html" href="https://zh.enter-politics.com/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&amp;diff=431&amp;oldid=prev"/>
		<updated>2020-04-08T17:50:39Z</updated>

		<summary type="html">&lt;p&gt;Remove mediawiki.notify, now available by default&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/**&lt;br /&gt;
 * Warning! Global gadget file!&lt;br /&gt;
 * &lt;br /&gt;
 * This gadget adds a clock in the personal toolbar that shows the current time&lt;br /&gt;
 * in UTC, and also provides a link to purge the current page.&lt;br /&gt;
 *&lt;br /&gt;
 * Revision: November 2017&lt;br /&gt;
 * Source: https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.js&lt;br /&gt;
 *&lt;br /&gt;
 * Installation:&lt;br /&gt;
 * &lt;br /&gt;
 * 1. Copy the JS page at https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.js&lt;br /&gt;
 * to the page [[MediaWiki:Gadget-UTCLiveClock.js]] on your wiki.&lt;br /&gt;
 * &lt;br /&gt;
 * 2. Copy the CSS page at https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.css&lt;br /&gt;
 * to the page [[MediaWiki:Gadget-UTCLiveClock.css]] on your wiki.&lt;br /&gt;
 * &lt;br /&gt;
 * 3. Copy the CSS page at https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock-pagestyles.css&lt;br /&gt;
 * to the page [[MediaWiki:Gadget-UTCLiveClock-pagestyles.css]] on your wiki.&lt;br /&gt;
 * &lt;br /&gt;
 * 4. Add a description of the gadget to the page [[MediaWiki:Gadget-UTCLiveClock]]&lt;br /&gt;
 * on your wiki. You can use https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock&lt;br /&gt;
 * as a template.&lt;br /&gt;
 * &lt;br /&gt;
 * 5. Add the following code to your wiki's [[MediaWiki:Gadgets-definition]]:&lt;br /&gt;
 * &lt;br /&gt;
 *     * UTCLiveClock[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api|peers=UTCLiveClock-pagestyles]|UTCLiveClock.js|UTCLiveClock.css&lt;br /&gt;
 *     * UTCLiveClock-pagestyles[hidden|skins=vector,monobook]|UTCLiveClock-pagestyles.css&lt;br /&gt;
 * &lt;br /&gt;
 */&lt;br /&gt;
/*global mw, $ */&lt;br /&gt;
mw.loader.using( ['mediawiki.util', 'mediawiki.api'] ).then( function () {&lt;br /&gt;
&lt;br /&gt;
function padWithZeroes( num ) {&lt;br /&gt;
	// Pad a number with zeroes. The number must be an integer where&lt;br /&gt;
	// 0 &amp;lt;= num &amp;lt; 100.&lt;br /&gt;
	return num &amp;lt; 10 ? '0' + num.toString() : num.toString(); &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function showTime( $target ) {&lt;br /&gt;
	var now = new Date();&lt;br /&gt;
&lt;br /&gt;
	// Set the time.&lt;br /&gt;
	var hh = now.getUTCHours();&lt;br /&gt;
	var mm = now.getUTCMinutes();&lt;br /&gt;
	var ss = now.getUTCSeconds();&lt;br /&gt;
	var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss );&lt;br /&gt;
	$target.text( time );&lt;br /&gt;
&lt;br /&gt;
	// Schedule the next time change.&lt;br /&gt;
	// &lt;br /&gt;
	// We schedule the change for 100 ms _after_ the next clock tick. The delay&lt;br /&gt;
	// from setTimeout is not precise, and if we aim exactly for the tick, there&lt;br /&gt;
	// is a chance that the function will run slightly before it. If this&lt;br /&gt;
	// happens, we will display the same time for two seconds in a row - not&lt;br /&gt;
	// good. By scheduling 100 ms after the tick, we will always be about 100 ms&lt;br /&gt;
	// late, but we are also very likely to display a new time every second.&lt;br /&gt;
	var ms = now.getUTCMilliseconds();&lt;br /&gt;
	setTimeout( function () {&lt;br /&gt;
		showTime( $target );&lt;br /&gt;
	}, 1100 - ms );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function liveClock() {&lt;br /&gt;
	// Set CSS styles. We do this here instead of on the CSS page because some&lt;br /&gt;
	// wikis load this page directly, without loading the accompanying CSS.&lt;br /&gt;
	mw.util.addCSS( '#utcdate a { font-weight:bolder; font-size:120%; }' );&lt;br /&gt;
&lt;br /&gt;
	// Reset whitespace that was set in the peer CSS gadget; this prevents the&lt;br /&gt;
	// effect of the p-personal menu jumping to the left when the JavaScript&lt;br /&gt;
	// loads.&lt;br /&gt;
	$( '.client-js &amp;gt; body.skin-vector #p-personal ul' ).css( 'margin-right', 'initial' );&lt;br /&gt;
	$( '.client-js &amp;gt; body.skin-monobook #p-personal ul' ).css( 'margin-right', 'initial' );&lt;br /&gt;
&lt;br /&gt;
	// Add the portlet link.&lt;br /&gt;
	var node = mw.util.addPortletLink(&lt;br /&gt;
		'p-personal',&lt;br /&gt;
		mw.util.getUrl( null, { action: 'purge' } ),&lt;br /&gt;
		'',&lt;br /&gt;
		'utcdate'&lt;br /&gt;
	);&lt;br /&gt;
	if ( !node ) {&lt;br /&gt;
		return;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// Purge the page when the clock is clicked. We have to do this through the&lt;br /&gt;
	// API, as purge URLs now make people click through a confirmation screen.&lt;br /&gt;
	$( node ).on( 'click', function ( e ) {&lt;br /&gt;
		new mw.Api().post( { action: 'purge', titles: mw.config.get( 'wgPageName' ) } ).then( function () {&lt;br /&gt;
			location.reload();&lt;br /&gt;
		}, function () {&lt;br /&gt;
			mw.notify( 'Purge failed', { type: 'error' } );&lt;br /&gt;
		} );&lt;br /&gt;
		e.preventDefault();&lt;br /&gt;
	} );&lt;br /&gt;
&lt;br /&gt;
	// Show the clock.&lt;br /&gt;
	showTime( $( node ).find( 'a:first' ) );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$( liveClock );&lt;br /&gt;
} );&lt;/div&gt;</summary>
		<author><name>mw&gt;DannyS712</name></author>
	</entry>
</feed>