24节气ics

Located in Belmont, Athena Academy focuses on the ethical and spiritual development of children aged 2.9 to 6 years old. We offer a full-day program with an experienced and caring faculty, including teachers that are certified to use the Montessori method. Additionally, we offer bilingual programs to combine the mastery of two languages and the cultural impact of experiencing different backgrounds.

本网站包含用户提交的内容、评论和观点,仅供参考。根据提供的信息,Apple 可能会提供或推荐回复来作为可行的解决方案;每个潜在问题可能都会涉及多个因素,这些因素在电子论坛上的对话中没有详加说明,因此,对于在社区论坛上提出的任何解决方案,Apple 不保证一定有效。对于与您使用本网站相关的任何第三方的行为、疏忽或举措,Apple 不承担任何责任。本网站上的所有帖子相关操作以及对网站内容的使用均须遵守 Apple 支持社区使用条款。了解数据的管理方式…
Apple

  1. 支持
  2. 社区

更多选购方式:前往 Apple Store 零售店,致电 400-666-8800 或查找在你附近的授权经销商。

Copyright © Apple Inc. 保留所有权利。

隐私政策 使用条款 销售政策 法律信息 网站地图

对于喜欢的比赛赛程,可能会上映的电影,要发售的游戏等等这些大部分人和我一样都需要跑到特定的网页上看。

因为做树莓派的魔镜项目,根据需要做了一个小工具把特定的一些网页整理成 ical 日历格式,可以用魔镜订阅然后显示。

24节气ics
在数字时钟的下方会显示我感兴趣的事件

考虑到可能会有朋友需要,干脆就把 ical 文件发布到 github 上,定期更新,在google 日历上订阅的效果:

24节气ics

需要的朋友可以订阅,目前已经存在的日历供参考:

  • FootballTournament.ics - 足球赛事时间表。
  • GameLaunch.ics - 游戏发售时间表。
  • Holiday.ics - 假日,实际放假的日期,包括调休上班。
  • InternationalFestival.ics - 公众或国际节日,比如劳动节、儿童节、妇女节等。
  • MovieComing.ics - 新电影上映的日历,仅限内地。
  • NBATournament.ics - NBA 赛事时间表。
  • SnookerTournament.ics - 斯诺克比赛日历,全英文。
  • SolarTerms.ics - 二十四节气日历。
  • TraditionFestival.ics - 传统节日,比如元旦、清明。

Outlook 的订阅方法:

24节气ics

Google 的订阅方法:

24节气ics

具体网址请参考github

如果你有需要的时间日历网页需要制作成 ical 格式的日历,不妨跟我说,;)

24节气ics

"If I had eight hours to chop down a tree, I would spend six hours sharpening my axe." A. Lincoln

  • 博客园
  • 首页
  • 新随笔
  • 联系
  • 订阅
  • 管理

iPhone 显示中国农历节气以及法定节假日

添加订阅的步骤:

设值》日历》账户》添加账户》其他》添加已订阅的日历》输入订阅URL

农历节气:

https://raw.githubusercontent.com/KaitoHH/24-jieqi-ics/master/23_solar_terms_2015-01-01_2050-12-31.ics

法定节假日:

https://p22-calendars.icloud.com/published/2/RL1JwQQtKFudYOiicAG_adz9DdrozFeZzv5Uyrs4s3gyWobdzL1NZFH-ZHAsTfuAevtnzdqVdYmcRO_Y_dWtxeIdmzUA1TNkAt5RuotJmsg

posted @ 2021-03-02 13:14  FrankYou  阅读(4241)  评论(0)  编辑  收藏  举报

Copyright © 2022 FrankYou
Powered by .NET 6 on Kubernetes

iCalendar格式的中国农历、节气、及传统节日

iCalendar是一种通用的日历交换格式,很多软件和设备,比如google calendar, apple calendar, thunderbird + lightning插件, iphone/ipad, 安卓都支持。

以前订过iCalendar格式农历日历,但慢慢地它们都停止了更新。感谢香港天文台为公众提供了从1901年到2100年间两百年的农历-公历对照表,也就是这里用到的数据。

24节气ics

用法:

下载包括前年、今年以及明年三年日历的ics文件,把它加入到你最常用的软件,不过最好直接在软件里订阅这个ics文件的链接,这样以后可以自动更新。

苹果设备上应该是:
设置 => 邮件、通讯录、日历 => 添加账户 => 其它 => 日历 添加已订阅日历

如果在Mac的iCal里订阅到iCloud,这个日历还可以自动推送到所有使用那个iCloud账户的ios设备。

生成更长时段农历

如果需要更长时段的农历,请到农历项目主页下载lunar_ical.py及相关文件

直接运行./lunar_ical.py会从香港天文台抓取1901到2100年间所有数据,然后生成上面那个前后三年时段的农历ics文件;

使用参数--start--end指定需要的起至日期, 例如:

./lunar_ical.py --start=2010-05-01 --end=2021-12-31 

超出1901-2100的农历数据使用VSOP87行星理论和LEA-406月球理论生成。 以香港天文台的数据为标准,用此法生成的1949到2100年间农历有两处不一致:

1)1979-01-20 大寒

2)2057-09-29 农历九月全部日期错位一天

上面两处节气及新月正好在午夜时分,数秒的计算误差就能左右该节气或新月属于前日深夜还是次日凌晨。

Contact me

iCalendar格式的农历 节气 及传统节日

iCalendar是一种通用的日历交换格式,很多软件和设备,比如google calendar, apple calendar, thunderbird + lightning插件, iphone/ipad, 安卓都支持。

以前订过iCalendar格式农历日历,但慢慢地它们都停止了更新。所幸香港天文台为公众提 供了从1901年到2100年间两百年的农历-公历对照表,也就是这里用到的数据。

下面是覆盖去年、今年以及明年三年的日历ics文件链接,把它加入到你最常用的 软件就可以了。

https://raw.github.com/infinet/lunar-calendar/master/chinese_lunar_prev_year_next_year.ics

苹果设备上应该是: 设置 => 邮件、通讯录、日历 => 添加账户 => 其它 => 日历 添加已订阅日历

如果在Mac的iCal里订阅到iCloud,这个日历还可以自动推送到所有使用那个iCloud 账户的ios设备。

系统要求

  • Python: python 3.5上测试可用

  • Numpy 和 Numexpr: 纯Python速度较慢,而天文算法特别是完全版的VSOP87和LEA-406计算量尤其大,所以最好配合Numpy以加快计算速度。

生成更长时段农历

如果需要更长时段的农历,请先克隆本项目。

直接运行./lunar_ical.py会从香港天文台抓取1901到2100年间所有数据,然后生成上面 那个前后三年时段的农历ics文件;

使用参数--start和--end指定需要的起至日期, 例如:

./lunar_ical.py --start=2010-05-01 --end=2021-12-31

超出1901-2100的农历数据使用VSOP87行星理论和LEA-406月球理论生成. 以香港天文台的 数据(更新于2014年)为标准,用此法生成的1949到2100年间农历有两处不一致:

1)1979-01-20 大寒

2)2057-09-29 农历九月全部日期错位一天

不一致的原因在于上面两处节气及新月正好跨越午夜时分,差距数秒就能影响该节气或新月的 发生日期。由于使用不同的行星位置计算方法和Delta T估算方法,出现这种差异在所难免。

C 版本

C版本速度更快,但暂时只在终端上输出ical。用户必须使用>将stdout的结果导入到指定文件以生成ical文件。

编译:

运行:

#生成某年农历
$ ./lunarcal 2016 > chinese_lunar_2016.ics

#生成数年农历
$ ./lunarcal 2016 2019 > chinese_lunar_2016_2019.ics

版权

本项目版权使用BSD协议,请参见所附COPYRIGHT文件。

感谢香港天文台为公众提供并授权本项目使用其农历-公历对照数据,该部分数据仅限非商业用途。

Chinese Lunar Calendar

Google, Apple, and Microsoft used to provide Chinese Lunar Calendar in iCalendar format, but most links were died over years. It is become hard to find a usable Chinese Lunar Calendar for use with online and offline calendar apps.

The Chinese Lunar Calendar is mostly based on the motion of the Moon. It is said due to the complicate interaction, mostly from the Sun and the Earth, the motion of Moon is very hard to predict, especially on the long run. Luckily Hong Kong Observatory has published a conversion table for the period from 1901 to 2100. It is the most trustworthy Lunar Calendar I can find on the web so far.

Lunar calendar beyond 1901-2100 range is generated by finding solar terms and moon phases uses VSOP87 planetary theory and LEA-406 lunar theory.

The full version of LEA-406 and VSOP87 are used by default. A truncated version , aa.py, which is slightly faster, is also included. The accuracy of this implementation, when compare to the apparent Sun and Moon longitude finded by the DE431 based JPL Horizon, are showed in following figures:

The lunar calendar generated by the full and truncated version is identical for the period 1949 - 2100. There are only two discrepancies compare to the HKO's version: one is a solar term on 1979-01-20, the other is a new moon on 2057-09-29. It is caused by few seconds of error happens around midnight(UTC +8).

The official timezone before 1949 is slightly different than the current UTC +8 therefor the computed lunar calendar may not represent history accurately.

License

This package is released under the terms and conditions of the BSD License, a copy is include in the file COPYRIGHT.

Hong Kong Observatory has been very kind to provide and grant the permission of using their conversion table, which is only for Non-Commercial use.

Requirement:

  • Python: tested on python 3.5

  • Numpy and Numexpr: Only needed when generate calendar by astronomical algorithm. The full version of LEA-406 and VSOP87 is rather slow when compute in pure python.

How to run

Run lunar_ical, it will fetch data from Hong Kong Observatory, save the data to a local sqlite database, then use that database to generate a ics file, which covers from the previous to the end of next year.

Try the Chinese Lunar Calendar by add this ics file to your favorite calendar app.

Start and end date can also be specified as command line options, for example:

./lunar_ical.py --start=1990-01-01 --end=2001-01-01

The date must in ISO format.

C port

There is also a C version under directory "c". Run make to generate the executable lunarcal. Run lunarcal with year will print out the Chinese Lunar Calendar in ical format to the terminal. Use > to redirect the output to a file, for example:

# Specific year
$ ./lunarcal 2016 > chinese_lunar_2016.ics

# or multiple years
$ ./lunarcal 2016 2019 > chinese_lunar_2016_2019.ics

[Contact me](mailto: )