Linux 软件免费装
Banner图

Simple Digital Clock 🕒

开发者 falselight
更新时间 2026年11月12日 05:17
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

clock current time digital clock world clock local times

下载

1.1.1 1.1.2 0.1.0 0.1.1 0.2.1 1.0.5 1.0.0 1.0.4 1.1.0 0.2.0 1.0.1 1.1.4 1.0.3 1.1.5

详情介绍:

升级注意事项:

1.1.5 Restores clocks in existing HTML, widget and template integrations. No content migration is required.

常见问题:

Can I set a custom locale (e.g., uk or en-GB)?

Yes. Use the Locale field and enter any valid BCP-47 tag.

Where does the clock get its time?

The clock uses the date and time reported by the visitor's device and formats it for the selected time zone. It does not synchronize with a time server, so an incorrect device clock will affect the displayed time.

How do I pick the time zone?

Use the Time Zone field and select any valid IANA ID (e.g., Europe/Kyiv, UTC).

Can I show hundredths of a second?

Yes. Enable “Hundredths of a second” in the block settings. It shows two fractional digits and automatically includes seconds while enabled.

Can I use my own fonts?

You can choose from the available mono fonts (Google Fonts) or select System to use a local monospace font. Selecting a Google Font loads it from Google's servers.

24-hour format

Yes. Enable 24-Hour to force a 24-hour display. When disabled, the clock follows the selected locale. For AM/PM, choose a locale such as en-US and leave 24-Hour disabled.

Can I show different locales and time zones on the same page?

Yes. Each block is independent—set its own locale and time zone.

Is it fast?

Yes. The bundled clock widget is about 12.2 KiB gzip and is served locally without a runtime JavaScript CDN dependency. On the frontend, the runtime is delivered only when a clock is present in the server-rendered page HTML; clock-free pages receive no plugin script or browser loader. Multiple clocks share one runtime script. The inline layout rule remains scoped to rendered Simple Digital Clock blocks and explicit integrations; raw HTML keeps its existing layout. No external plugin stylesheet is loaded. Server-side HTML observation adds PHP work, including on clock-free pages.

What about clocks created later by custom JavaScript?

Automatic delivery detects server-rendered clocks. An integration that creates its first clock only after page load must load the widget runtime itself. Calling SDCW_enqueue_scripts() without rendering a clock on the server does not bypass the zero-script rule.

What if my site caches complete HTML pages?

Regenerate full-page caches after updating so visitors receive the corrected HTML. Cached pages served without WordPress running are not rewritten by the plugin.

Screenshots

  1. screenshot-1.png – Front-end examples: multiple Simple Digital Clock blocks on one page, each with different locales, time zones, colors, and formats (AM/PM or 24-hour).
  2. screenshot-2.png – Editor view: Gutenberg sidebar settings for the block (Container, Background Color, Options, Display, About, Advanced) to tweak size, radius, shadow, font, locale, time zone, seconds, date, etc.
  3. screenshot-3.png – Block inserter: searching “Clock” and selecting the Simple Digital Clock block to add it to the page.
  4. screenshot-4.png – Live preset gallery showing Local Time, London, New York, Tokyo, Kyiv, and the Hundredths preset.
  5. screenshot-5.png – Live preview of a customized London clock with caption, seconds, date, color, radius, and shadow.
The plugin bundles its production JavaScript locally for performance. Human-readable source code and reproducible build instructions are available below.

更新日志:

1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 0.2.1 0.2.0 0.1.1 0.1.0