Title: IP2Location World Clock
Author: IP2Location
Published: <strong>2019 年 8 月 2 日</strong>
Last modified: 2025 年 12 月 12 日

---

搜索插件

![](https://ps.w.org/ip2location-world-clock/assets/banner-772x250.png?rev=2132599)

![](https://ps.w.org/ip2location-world-clock/assets/icon-128x128.png?rev=2134675)

# IP2Location World Clock

 作者：[IP2Location](https://profiles.wordpress.org/ip2location/)

[下载](https://downloads.wordpress.org/plugin/ip2location-world-clock.1.2.1.zip)

 * [详情](https://cn.wordpress.org/plugins/ip2location-world-clock/#description)
 * [评价](https://cn.wordpress.org/plugins/ip2location-world-clock/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/ip2location-world-clock/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/ip2location-world-clock/#developers)

 [支持](https://wordpress.org/support/plugin/ip2location-world-clock/)

## 描述

可以轻松地在您的网站上显示指针或数字时钟的简单小部件。IP2Location 世界时钟为您提供
了一系列完全免费的不同时钟设计。支持本地时间、访客时间和自定义时区选择。

#### 功能

 * 世界时钟小工具使您可以轻松地在任何地方嵌入您的网站
 * 46 种不同的时钟设计可供选择，而且列表还在不断增加
 * 3 个时间选择选项（当地时间、访客时间和自定义时区）。
 * 数字时钟支持 12 小时或 24 小时时间格式。
 * 可以通过简码 [ip2location_world_clock] 添加，请参阅常见问题部分了解简码参数。

## 屏幕截图

[⌊IP2Location World Clock 设置页面 - 指针式时钟设计⌉⌊IP2Location World Clock 设置
页面 - 指针式时钟设计⌉[

IP2Location World Clock 设置页面 – 指针式时钟设计

[⌊IP2Location World Clock 设置页面 - 数字时钟设计⌉⌊IP2Location World Clock 设置页
面 - 数字时钟设计⌉[

IP2Location World Clock 设置页面 – 数字时钟设计

[⌊IP2Location World Clock 小工具页面⌉⌊IP2Location World Clock 小工具页面⌉[

IP2Location World Clock 小工具页面

[⌊IP2Location World 指针式时钟显示⌉⌊IP2Location World 指针式时钟显示⌉[

IP2Location World 指针式时钟显示

[⌊IP2Location World 数字时钟显示⌉⌊IP2Location World 数字时钟显示⌉[

IP2Location World 数字时钟显示

## 安装

### 使用 WordPress 控制面板

 1.  选择 **Plugins >> Add New**。
 2.  搜索 “IP2Location World Clock”。
 3.  单击_立即安装_按钮以安装插件。
 4.  单击_激活_按钮以激活插件。
 5.  从 https://lite.ip2location.com/ (免费) 或 https://www.ip2location.com/ (收费)
     下载 IP2Location 数据库。
 6.  解压缩 .BIN 文件并上传到 `wp-content/uploads/ip2location`。
 7.  安装后，您可以在“Dashboard”中看到一个新菜单“IP2Location World Clock”。
 8.  选择时钟设计和显示时间。
 9.  保存变化。
 10. 前往 **Dashboard >> Appearance >> Widget**。
 11. 将其设置为_侧边栏_。

### 手动安装

 1.  下载并解压缩插件。将解压后的文件夹上传到 wp-contents/plugins/ip2location-world-
     clock` 目录。
 2.  通过 WordPress 的“插件”菜单以激活本插件。
 3.  从 https://lite.ip2location.com/ (免费) 或 https://www.ip2location.com/ (收费)
     下载 IP2Location 数据库。
 4.  解压缩 .BIN 文件并上传到 `wp-content/uploads/ip2location`。
 5.  安装后，您可以在“Dashboard”中看到一个新菜单“IP2Location World Clock”。
 6.  选择时钟设计和显示时间。
 7.  保存变化。
 8.  前往 **Dashboard >> Appearance >> Widget**。
 9.  将其设置为_侧边栏_。

## 常见问题

### 我该从哪里开始？

前往 **Dashboard >> Appearance >> Widget** 并将此插件设置为您的_sidebar_。然后，
前往菜单页面以选择您的时钟设计和显示时间。

### 在安装插件后我是否需要下载 IP 地理位置 BIN 文件？

是的，如果您正打算显示访客时间。您可以从 https://lite.ip2location.com/ （免费）或
https://www.ip2location.com/ （付费）下载最新的 IP2Location Database BIN 文件。请
注意下载包含时区信息的 DB11 版本。

### 我需要经常更新 BIN 文件吗？

我们鼓励您每个月更新您的 BIN 文件，以便您的插件可以根据访问者的地理位置显示正确的
时间。

### 我能在文章或页面内插入一个时钟吗？

是的，**[ip2location_world_clock]** 简码是可用的。

### 简码的默认显示是什么？

简码的默认显示基于您在 IP2Location World Clock 菜单中的设置。

### 哪些参数可用于简码？

**design** – 使用 **‘a’** 后跟 IP2Location World Clock Menu 中显示的指针时钟设计
的位置，而使用 **‘d’** 后跟 IP2Location World Clock Menu 中显示的数字时钟设计的位置。
时钟设计的位置是从上到下，从左到右计算的。例如，第一个指针时钟设计使用“a1”，而第五
个数字时钟设计使用“d5”。

**time** – 使用 **local** 表示当地时间，**visitor** 表示访问者的当地时间，**custom**
表示自定义时区。

**utc** – 使用自定义时区时使用此参数。可用值来自 **-12 到 +14**。您可以参考 IP2Location
World Clock 菜单中的值。

### 带参数的简码示例？

Display second design of analog clock in local time
 **[ip2location_world_clock****
design=”a2″** **time=”local”]**

Display fifth design of digital clock in visitor’s local time
 **[ip2location_world_clock****
design=”d5″** **time=”visitor”]**

Display first design of digital clock in custom time zone of +4:00
 **[ip2location_world_clock****
design=”d1″** **time=”custom”** **utc=”+4″]**

## 评价

此插件暂无评价。

## 贡献者及开发者

「IP2Location World Clock」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ IP2Location ](https://profiles.wordpress.org/ip2location/)

[帮助将「IP2Location World Clock」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ip2location-world-clock)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ip2location-world-clock/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/ip2location-world-clock/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/ip2location-world-clock/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ip2location-world-clock/)。

## 更新日志

#### 1.2.1

 * Tested up to WordPress 6.9.

#### 1.2.0

 * Tested up to WordPress 6.8.

#### 1.1.10

 * Fixed possible CSRF vulnerabilities.

#### 1.1.9

 * Tested up to WordPress 6.7

#### 1.1.8

 * Tested up to WordPress 6.6.1

#### 1.1.7

 * Tested up to WordPress 6.5

#### 1.1.6

 * Tested up to WordPress 6.4

#### 1.1.5

 * Tested up to WordPress 6.2

#### 1.1.4

 * Fixed database download issue
 * Tested up to WordPress 6.1

#### 1.1.3

 * 次要修复
 * Tested up to WordPress 6.0

#### 1.1.2

 * Enhanced checking

#### 1.1.1

 * 修复了 PHP 警告

#### 1.1.0

 * 添加了季节性时钟设计（农历新年）
 * 添加数字时钟的时间格式（12H & 24H）

#### 1.0.9

 * 添加了季节性时钟设计（万圣节）

#### 1.0.8

 * 添加了季节性时钟设计（中秋节）

#### 1.0.7

 * 添加了经典时钟设计

#### 1.0.6

 * 次要修复

#### 1.0.5

 * 添加了简码的参数

#### 1.0.4

 * 添加了季节性时钟设计（复活节）

#### 1.0.3

 * 添加了季节性时钟设计（情人节）
 * 次要修复

#### 1.0.2

 * 添加了插件评论
 * 添加了反馈请求。

#### 1.0.1

 * 添加了季节性时钟设计（圣诞节）
 * 添加了简码

#### 1.0.0

 * 初始发行

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**6 月前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 2.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ip2location-world-clock/)
 * 标签
 * [analog clock](https://cn.wordpress.org/plugins/tags/analog-clock/)[clock](https://cn.wordpress.org/plugins/tags/clock/)
   [digital clock](https://cn.wordpress.org/plugins/tags/digital-clock/)[local time](https://cn.wordpress.org/plugins/tags/local-time/)
   [world clock](https://cn.wordpress.org/plugins/tags/world-clock/)
 *  [高级视图](https://cn.wordpress.org/plugins/ip2location-world-clock/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/ip2location-world-clock/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ip2location-world-clock/reviews/)

## 贡献者

 *   [ IP2Location ](https://profiles.wordpress.org/ip2location/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ip2location-world-clock/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.ip2location.com)