Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ChinaTime · 中国时区悬浮时钟

一个 Windows 桌面悬浮小时钟:不修改系统时间,电脑保持美区时间,在屏幕最上层悬浮显示北京时间。默认吸附在任务栏时钟位置,可拖动到任意位置、可锁定,位置自动记忆。

特性

  • 🕐 全年精准换算 — 北京时间由 UTC+8 直接换算,自动适应美国冬 / 夏令时(时差 16 / 15 小时)
  • 🖱️ 随意移动 · 可固定 — 按住拖动放到任意位置,右键菜单可锁定;重启后恢复原位
  • 🚀 开机自启 · 常驻后台 — 可注册为 Windows 启动项,单实例保护,不会重复弹出
  • 🪶 零依赖 — 仅使用 Python 标准库(tkinter + ctypes),无需安装任何第三方包

运行

pythonw china_time.py

要求 Windows + Python 3.9+。

开机自启(可选)

注册到当前用户启动项:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" `
  -Name "ChinaTimeClock" `
  -Value '"C:\Path\To\pythonw.exe" "C:\Path\To\china_time.py"'

操作方式

操作 效果
左键按住拖动 移动时钟到任意位置(拖走后不再跟随任务栏)
右键 → 锁定位置 固定不动,再点一次解锁
右键 → 吸附到任务栏时钟 回到任务栏时钟位置并恢复跟随
Ctrl + Alt + C 全局快捷键:隐藏 / 显示时钟

位置与状态自动保存到 china_time_config.json,删除该文件即恢复默认。

详细说明见 使用教程.html

退出

程序设计为常驻后台、无退出按钮;确需停止时在任务管理器结束 pythonw.exe 进程。

About

Windows floating clock overlaying Beijing time on a US-timezone system

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages