8000 GitHub - mayfower111/jieqi: 一个计算24节气时间的小程序,包含中国美国欧洲不同时区,精确到秒。A small program that calculates the times of the 24 solar terms, including different time zones for China, the United States, and Europe, with precision down to the second.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

一个计算24节气时间的小程序,包含中国美国欧洲不同时区,精确到秒。A small program that calculates the times of the 24 solar terms, including different time zones for China, the United States, and Europe, with precision down to the second.

License

Notifications You must be signed in to change notification settings

mayfower111/jieqi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

24节气查询工具

一个简单的命令行工具,用于查询指定年份的24节气日期和时间。

功能特点

  • 支持查询 1900-2100 年间的节气信息
  • 支持多个时区选择(美国东部时间、中国时间、英国时间)
  • 精确到秒的节气时间计算
  • 自动处理在线/离线星历表

使用方法

  1. 运行程序后,输入想要查询的年份(1900-2100之间)
  2. 选择需要显示的时区:
    • 1: 美国东部时间 (America/New_York)
    • 2: 中国时间 (Asia/Shanghai)
    • 3: 英国时间 (Europe/London)
  3. 程序将显示该年全年24节气的具体日期和时间
  4. 输入 'q' 可以退出程序

依赖项目

  • Python 3.6+
  • skyfield
  • pytz

注意事项

  • 首次运行时,程序会自动下载天文星历表(de421.bsp),需要保持网络连接
  • 如果本地已有 de421.bsp 文件,程序会优先使用本地文件
  • 时间精度依赖于天文星历表的计算

示例输出

欢迎使用24节气查询工具! 请输入年份(例如:2024)查询全年节气

请输入年份,输入q退出:2025

请选择时区:

  1. 美国东部时间 (America/New_York) [默认]
  2. 中国时间 (Asia/Shanghai)
  3. 英国时间 (Europe/London) 请输入选项编号 [1-3],直接回车选择默认时区: 1 成功加载星历表:de421.bsp

2025-01-01 至 2025-12-31 期间的24节气(America/New_York时区):

节气 日期时间

小寒 2025-01-04 21:32:46 大寒 2025-01-19 15:00:07 立春 2025-02-03 09:10:28 雨水 2025-02-18 05:06:34 惊蛰 2025-03-05 03:07:16 春分 2025-03-20 05:01:28 清明 2025-04-04 08:48:33 谷雨 2025-04-19 15:56:01 立夏 2025-05-05 01:57:11 小满 2025-05-20 14:54:38 芒种 2025-06-05 05:56:31 夏至 2025-06-20 22:42:15 小暑 2025-07-06 16:04:59 大暑 2025-07-22 09:29:27 立秋 2025-08-07 01:51:34 处暑 2025-08-22 16:33:51 白露 2025-09-07 04:51:56 秋分 2025-09-22 14:19:20 寒露 2025-10-07 20:41:12 霜降 2025-10-22 23:50:55 立冬 2025-11-06 23:04:02 小雪 2025-11-21 20:35:34 大雪 2025-12-06 16:04:34 冬至 2025-12-21 10:03:05

About

一个计算24节气时间的小程序,包含中国美国欧洲不同时区,精确到秒。A small program that calculates the times of the 24 solar terms, including different time zones for China, the United States, and Europe, with precision down to the second.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0