Lunar & Holiday Calendar
Write your own text and colour into the Windows 11 calendar: holidays from an iCalendar (.ics) feed, dates matched by your rules, and optionally the Vietnamese lunar calendar
Author: dcsmf
Languages: English · 中文 · Tiếng Việt

Lunar & Holiday Calendar
The Windows 11 calendar flyout prints a lunar date, solar term or festival name in each day
cell. This mod writes holiday text and colour into that line by rules you write; rules can
also mark a lunar or solar date directly. Feeds from any country work.
- Default: days marked
休 show the holiday name in blue; days marked 班 show 补班 in red.
- Other days keep the system's line; with the Vietnamese lunar calendar on, they show the
Vietnamese lunar date.
Requirements
The mod writes into the second line of a day cell (usually the one which shows the lunar
date, solar term or festival name), so that line has to be on:
Settings -> Time & language -> Date & time -> "Show additional calendars in the taskbar"
-> Simplified Chinese (Lunar)
With that line switched off a day cell usually has nothing to write into, and no mark
shows up on the calendar. The Vietnamese lunar calendar below writes into that same line.
When a cell already has content but no usable system-named second-line text block (missing or
empty), the mod skips it instead of guessing at another one and says so in the log.
Settings
| Setting |
What to fill in |
| Data source (ICS) |
The address of your .ics feed. Empty by default, and then no feed is read; leave it empty if you only mark days with rules. |
| Refresh interval (hours) |
How often the feed is read again (24 h by default). |
| Vietnamese lunar calendar |
Day cells show the Vietnamese lunar date by default; a Chinese lunar date at the top of the calendar is written in Vietnamese too. See below. |
| Tooltip on hover |
The full name (or the text your rule writes) when the pointer rests on a marked day. Useful when a long name does not fit in the cell. |
| Highlight rules |
Which days are marked, in which colour and with which text. See below. |
| Text to remove |
The pieces of the text of an event which are cut off it (default (休) and (班)). See below. |
Changing the rules or the text to remove does not force a new download: the data already
read is marked again with the new settings.
Vietnamese lunar calendar
With "Vietnamese lunar calendar (replace the lunar text)" on:
- a day cell shows the Vietnamese lunar date (
15/8; 1/2N in a leap month) unless a rule
gives another text;
- when the lunar date line at the top of the calendar is in the Chinese format, it is written
in Vietnamese (day, month and Can Chi year, e.g.
15 Tháng 8 Năm Bính Ngọ);
- the dates are calculated offline (UTC+7) and need no feed.
The Vietnamese holidays are not built into the mod: they come from a feed, or from a rule
written below.
Highlight rules
One item per kind of day, three fields each:
Word: 休 Colour: #4EA1FF Text: {name}
- Word: one word; an event is marked when its text contains it. A
* rule takes every
event no other rule matched, wherever it appears in the list.
- Colour:
#RRGGBB; empty sets no colour.
- Text:
{name} is the event text (after "Text to remove"); empty uses the cell's own
line (the system line, or the Vietnamese date).
- A rule with no word, or with neither colour nor text, does nothing. The first match wins.
A few examples, each of them one item of the list:
| Word |
Colour |
Text |
What it does |
班 |
#FF5A5A |
补班 |
an adjusted workday shows 补班, in red (default) |
休 |
#4EA1FF |
{name} |
a day off shows the name of the holiday, in blue (default) |
* |
#4EA1FF |
{name} |
every event of the feed shows its own text, in blue |
祝日 |
#E81123 |
(empty) |
祝日 of a Japanese feed is coloured, the cell text kept |
nghỉ lễ |
#FF5A5A |
{name} |
days of a Vietnamese feed which say nghỉ lễ, in red |
Marking a day of the calendar
"Word" may name a day instead of a word, which marks a day no feed carries:
| What to write |
What it asks for |
{lunar: d=15} |
the fifteenth day of every lunar month, leap months included |
{lunar: m=8, d=15} |
the fifteenth of the eighth month (not the leap one) |
{lunar: m=8L, d=15} |
the fifteenth of the leap eighth month; {lunar: m=8, d=15, leap} means the same |
{lunar: m=9} |
every day of the ninth month |
{solar: m=4, d=30} |
the thirtieth of April |
m is the month and d the day, separated by commas, in any order and with any case.
m=8L, or a separate leap field, asks for the leap month; a month written without either
means the ordinary month. A token with only d takes leap months too.
solar has no leap month, so L and leap are not used there.
- A solar day goes up to 31 and a lunar one up to 30; a day the named month does not have
(30 February, for example) is a typo.
- To mark both the ordinary and the leap month of the same number, write two items:
{lunar: m=8, d=15} and {lunar: m=8L, d=15}.
- A token which cannot be read (unknown key, out-of-range value, repeated field, no date)
marks no day.
- Which calendar a lunar day is read in is what the switch above says: the Vietnamese one with
it on, the Chinese one the cells show with it off.
- A day whose event is matched by a rule of the feed is settled by that rule; a rule of this
kind only answers for the days no event rule marks.
- A rule of this kind has no event text, so
{name} is empty; an empty text keeps the date.
One item is one date pattern.
A set of Vietnamese holidays (each line is one item of the list):
| Word |
Colour |
Text |
What it does |
{lunar: d=1} |
#FF5A5A |
(empty) |
the first day of every lunar month, red, the date kept |
{lunar: d=15} |
#FF5A5A |
(empty) |
every Rằm, red, the date kept |
{lunar: m=1, d=1} |
#E81123 |
Tết Nguyên đán |
Vietnamese New Year |
{lunar: m=3, d=10} |
#E81123 |
Giỗ tổ Hùng Vương |
the day of the Hùng kings |
{lunar: m=5, d=5} |
#E81123 |
Đoan Ngọ |
the mid-year festival |
{lunar: m=8, d=15} |
#E81123 |
Tết Trung thu |
Mid-Autumn |
{lunar: m=12, d=23} |
#E81123 |
Ông Táo |
the kitchen god |
{solar: m=4, d=30} |
#E81123 |
Ngày Thống nhất |
Reunification Day |
{solar: m=9, d=2} |
#E81123 |
Quốc khánh |
the national day |
Text to remove
A string written here is removed from the displayed event text exactly as written, every time
it occurs (brackets and spaces included). It changes only the display, not which rule matches.
The two default items are the Chinese markers:
(休) 国庆节(休) shows 国庆节
(班) works the same; a fixed rule text still wins. Add other markers as needed, for
example (nghỉ bù). The defaults use full-width brackets; add half-width (休), (班) or
another form yourself. Empty the list and nothing is removed.
If the whole name is removed, only the colour or the date stays.
Data source
The mod ships with no holiday data and requests only the address you enter. Examples:
- Apple iCloud holidays for China:
https://p10-calendars.icloud.com/holiday/CN_zh.ics
- Apple iCloud holidays for Vietnam:
https://p10-calendars.icloud.com/holiday/VN_vi.ics
https://holiday.ailcc.com/api/holiday/ics (China, several years at once)
An event of a feed looks like this, and the word of a rule is looked for in it:
SUMMARY:春节(休)
A usual date-based .ics feed works. If a refresh fails, marks already loaded stay; with no
data, the calendar still shows the system content (or the Vietnamese lunar calendar) and the
date rules.
Credits
The way the calendar window is found comes from lonfro's
Agenda in Calendar View
(GPL-3.0), and the cross-thread helpers follow m417z's
Windows 11 Notification Center Styler.
The Vietnamese lunar calendar was contributed by @phatMT97 and
@vantruong-dev, using astronomical calculations based on Jean Meeus's
Astronomical Algorithms (2nd Edition 1998, chapters 25 & 49) and Claus Tøndering's Calendar FAQ.
农历与节假日日历
Windows 11 的日历(点击任务栏右下角的时间弹出)会在日期格里显示农历、节气或节日名。这个 mod 按你写的
规则,把节假日的文字和颜色写进这一行;也可以直接用规则标记农历或阳历日期。任何国家的订阅源都能用。
- 默认:
休 标到的日子显示节日名(蓝),班 标到的日子显示 补班(红)。
- 其他日子保留系统那一行;打开越南农历后显示越南农历日期。
使用前提
mod 写的是日期格里的第二行(通常就是显示农历、节气或节日名的那一行),所以先把它打开:
设置 → 时间和语言 → 日期和时间 → "在任务栏中显示其他日历" → 选中"简体中文(农历)"
不打开这一行,日期格子里往往就没有可写的地方,日历上也看不出标记——越南农历写的也是这一行。
格子已经有内容、但找不到可用的第二行文本块(不存在或没有文字)时,mod 不会猜别的文本块,直接跳过
这个格子并在日志里说明。
设置项
| 设置 |
填什么 |
| 数据来源 |
你的 .ics 订阅地址。留空(默认)则不读取订阅源;只用日期规则标记时可以不填。 |
| 刷新间隔(小时) |
隔多久重新下载一次(默认 24 小时)。 |
| 越南农历(替换农历文字) |
日期格默认显示越南农历;日历顶部的农历日期是中文格式时也改成越南写法。见下文。 |
| 悬停时显示完整文字 |
鼠标停在有标记的日期上,显示完整名称(或规则写的文字)。名字太长、日期格显示不下时用。 |
| 高亮规则 |
哪些日子被标记、标成什么颜色和文字。见下文。 |
| 剔除的文字 |
从事件原文里删掉的那几段文字(默认 (休)、(班))。见下文。 |
改规则、改"剔除的文字"不会立即重新下载:mod 会拿已经读到的数据按新设置重新标一遍。
越南农历
打开"越南农历(替换农历文字)"后:
- 日期格默认显示越南农历日期,写成
日/月(如 15/8),闰月写成 1/2N;有规则文字时显示
规则文字。
- 日历顶部的农历日期行是中文格式时,整行换成越南写法:日期、月份和干支年(如
15 Tháng 8 Năm Bính Ngọ)。
- 日期离线计算(UTC+7),不依赖订阅源。
越南的节假日不内置在 mod 里:要么订阅源里有,要么用下面的规则标。
高亮规则
一项一类日子,每项填三栏:
要找的词:休 颜色:#4EA1FF 显示的文字:{name}
- 要找的词:只填一个词,它出现在事件文字里就算命中。默认两项是"班"和"休";填
* 是兜底:
所有没被别的规则命中过的事件都归它,写在哪一项都可以——别国的订阅源大多没有"休"/"班",
加一项填 * 就能全标上。
- 颜色:
#RRGGBB;留空不设置颜色。
- 显示的文字:
{name} 是事件原文(先按"剔除的文字"删除);留空沿用日期格自己的文字
(系统那一行,或越南农历日期)。
- 颜色和文字都留空、或要找的词留空,这一项不生效;第一条命中的生效。
几个例子(每行都是列表里的一项):
| 要找的词 |
颜色 |
显示的文字 |
效果 |
班 |
#FF5A5A |
补班 |
调休上班的日子显示"补班"、红色(默认) |
休 |
#4EA1FF |
{name} |
放假的日子显示节日名、蓝色(默认) |
* |
#4EA1FF |
{name} |
订阅源里的所有事件都显示原文、蓝色 |
祝日 |
#E81123 |
(留空) |
日文订阅源里"祝日"的日子只改颜色,沿用日期格文字 |
nghỉ lễ |
#FF5A5A |
{name} |
越南订阅源里"nghỉ lễ"的日子显示原文、红色 |
用规则标农历日子
"要找的词"里也可以写一个日子,这样不依赖订阅源也能标记某一天:
| 写法 |
意思 |
{lunar: d=15} |
每个农历月的十五(含闰月) |
{lunar: m=8, d=15} |
农历八月十五(不算闰八月十五) |
{lunar: m=8L, d=15} |
闰八月十五;也可写 {lunar: m=8, d=15, leap} |
{lunar: m=9} |
农历九月的每一天 |
{solar: m=4, d=30} |
阳历 4 月 30 日 |
m 月份、d 日子,用逗号分隔;顺序、大小写和空格都不影响。
m=8L,或者加一个 leap 字段,表示闰月;写了月份但没加,表示那个号码的本气月。只写
d 不写月份时,闰月也算。
solar 没有闰月,不能写 L 或 leap。
- 阳历日子可以到 31,农历日子最多 30;写了月份但该月没有这一天(例如 2 月 30 日)也算写法有误。
- 同一个月份的本气月和闰月都想标,就写两项:
{lunar: m=8, d=15} 和
{lunar: m=8L, d=15}。
- 写法有误(未知键、月份或日子越界、重复字段、没有日期)这一项不生效。
- 农历日期按哪本历算看上面那个开关:开着按越南农历,关着按系统显示的中国农历。
- 同一天有被订阅源规则命中的事件时,订阅源优先;订阅源里没有命中的日子才由这类规则标记。
- 这类规则没有事件原文,所以
{name} 是空的;文字留空就保留原有日期。一项只写一个日期条件。
越南节假日的一组例子(每行都是列表里的一项):
| 要找的词 |
颜色 |
显示的文字 |
效果 |
{lunar: d=1} |
#FF5A5A |
(留空) |
每个农历初一,保留农历日期,红色 |
{lunar: d=15} |
#FF5A5A |
(留空) |
每个农历十五(Rằm),保留农历日期,红色 |
{lunar: m=1, d=1} |
#E81123 |
Tết Nguyên đán |
越南春节 |
{lunar: m=3, d=10} |
#E81123 |
Giỗ tổ Hùng Vương |
雄王纪念日 |
{lunar: m=5, d=5} |
#E81123 |
Đoan Ngọ |
端午节 |
{lunar: m=8, d=15} |
#E81123 |
Tết Trung thu |
中秋节 |
{lunar: m=12, d=23} |
#E81123 |
Ông Táo |
灶君 |
{solar: m=4, d=30} |
#E81123 |
Ngày Thống nhất |
越南统一日 |
{solar: m=9, d=2} |
#E81123 |
Quốc khánh |
越南国庆 |
剔除的文字
事件原文里不想要的那一段,原样写一条,它就从显示的文字里消失(出现几次删几次,写什么删什么,
括号和空格都算)。它只影响显示,不影响规则匹配。默认两条是中文订阅源的标记:
(休) 国庆节(休) 显示成 国庆节
(班) 也一样;如果规则显示固定文字,就显示那段固定文字。其他订阅源可以自己加标记,例如
(nghỉ bù)。默认只列了全角括号;半角 (休)、(班) 或其他写法自己加一条。清空列表就什么都不删。
如果整个名字都被删空,这一天只保留颜色或原有日期。
数据来源
mod 不内置节假日数据,只会请求你填的地址。下面只是示例:
- 苹果 iCloud 中国节假日:
https://p10-calendars.icloud.com/holiday/CN_zh.ics
- 苹果 iCloud 越南节假日:
https://p10-calendars.icloud.com/holiday/VN_vi.ics
https://holiday.ailcc.com/api/holiday/ics(中国,一次返回多年)
订阅源里每个事件大致长这样,"要找的词"就是在这里面找:
SUMMARY:春节(休)
常见按日期的 .ics 订阅都能用。暂时读不到新数据时,已加载的标记会保留;没有数据时日历仍显示
系统内容(或越南农历)和日期规则。
致谢
日历窗口的定位方式来自 lonfro 的
Agenda in Calendar View
(GPL-3.0),跨线程调用沿用 m417z 的
Windows 11 Notification Center Styler。
越南农历计算由 @phatMT97 与
@vantruong-dev 贡献,基于 Jean Meeus《Astronomical Algorithms》(第 2 版 1998,第 25 与 49 章)与 Claus Tøndering Calendar FAQ 的天文学算法实现。
Lịch âm và ngày lễ
Bảng lịch Windows 11 (bấm vào đồng hồ ở khay hệ thống) hiện ngày âm, tiết khí hoặc tên ngày lễ trong ô
ngày. Mod này ghi chữ và màu ngày lễ vào dòng đó theo quy tắc bạn viết; quy tắc cũng có thể tô trực tiếp
một ngày âm hoặc dương. Nguồn của bất kỳ nước nào đều dùng được.
- Mặc định: ngày có
休 hiện tên ngày lễ (xanh); ngày có 班 hiện 补班 (đỏ).
- Các ngày khác giữ dòng của hệ thống; bật lịch Việt Nam thì hiện ngày âm lịch Việt Nam.
Yêu cầu
Mod viết vào dòng chữ thứ hai của ô ngày (thường là dòng hiện ngày âm, tiết khí hoặc tên ngày lễ),
nên phải bật dòng đó trước:
Cài đặt → Thời gian & ngôn ngữ → Ngày & giờ → "Hiển thị lịch bổ sung trên khay hệ thống" → chọn
"Trung (Giản thể, Âm lịch)"
Không bật dòng đó thì ô ngày thường không còn chỗ nào để viết, và trên lịch sẽ không thấy dấu nào. Lịch
âm Việt Nam bên dưới cũng viết vào chính dòng đó.
Khi ô đã có nội dung nhưng không có khối chữ thứ hai dùng được do hệ thống đặt tên (không có hoặc
đang trống), mod bỏ qua ô đó thay vì đoán khối khác và ghi vào log.
Cài đặt
| Cài đặt |
Điền gì |
| Nguồn dữ liệu (ICS) |
Địa chỉ .ics của bạn. Để trống (mặc định) thì không đọc nguồn nào; có thể để trống nếu chỉ tô ngày bằng quy tắc. |
| Khoảng thời gian làm mới (giờ) |
Bao lâu tải lại nguồn một lần (mặc định 24 giờ). |
| Lịch âm Việt Nam (thay chữ âm lịch) |
Ô ngày mặc định hiện ngày âm Việt Nam; dòng ngày âm ở đầu bảng lịch cũng được viết theo kiểu Việt Nam. Xem bên dưới. |
| Hiện đầy đủ khi rê chuột |
Hiện tên đầy đủ (hoặc chữ quy tắc ghi) khi đưa chuột lên ngày được tô. Dùng khi tên quá dài, ô không hiện hết. |
| Quy tắc tô màu |
Ngày nào được tô, màu gì và chữ gì. Xem bên dưới. |
| Chữ cần bỏ |
Những đoạn chữ bị bỏ khỏi nguyên văn sự kiện (mặc định (休), (班)). Xem bên dưới. |
Đổi quy tắc hay "chữ cần bỏ" không buộc tải lại ngay: mod tô lại dữ liệu đã đọc theo cài đặt mới.
Lịch âm Việt Nam
Khi bật "Lịch âm Việt Nam (thay chữ âm lịch)":
- ô ngày mặc định hiện ngày âm Việt Nam (
15/8; tháng nhuận 1/2N), trừ khi quy tắc cho chữ khác;
- nếu dòng ngày âm ở đầu bảng lịch là kiểu Trung Quốc, dòng đó được viết theo kiểu Việt Nam
(ngày, tháng, năm Can Chi, ví dụ
15 Tháng 8 Năm Bính Ngọ);
- ngày được tính offline (UTC+7), không cần nguồn.
Ngày lễ Việt Nam không được nhúng sẵn trong mod: lấy từ nguồn dữ liệu, hoặc từ quy tắc bên dưới.
Quy tắc tô màu
Mỗi mục là một loại ngày, gồm ba ô:
Từ: 休 Màu: #4EA1FF Chữ: {name}
- Từ: một từ; sự kiện có chứa từ đó thì được tô. Quy tắc
* nhận mọi sự kiện không
quy tắc nào khác khớp, đặt ở đâu trong danh sách cũng được.
- Màu:
#RRGGBB; để trống là không đặt màu.
- Chữ:
{name} là nguyên văn sự kiện (sau "Chữ cần bỏ"); để trống là dùng dòng của ô
(dòng hệ thống, hoặc ngày âm Việt Nam).
- Mục không có từ, hoặc không có cả màu lẫn chữ, không có tác dụng. Mục đầu tiên khớp được dùng.
Vài ví dụ (mỗi dòng là một mục trong danh sách):
| Từ |
Màu |
Chữ |
Tác dụng |
班 |
#FF5A5A |
补班 |
ngày làm bù hiện 补班, màu đỏ (mặc định) |
休 |
#4EA1FF |
{name} |
ngày nghỉ hiện tên ngày lễ, màu xanh (mặc định) |
* |
#4EA1FF |
{name} |
mọi sự kiện của nguồn đều hiện nguyên văn, màu xanh |
祝日 |
#E81123 |
(trống) |
ngày 祝日 của nguồn Nhật chỉ đổi màu, giữ dòng hiện có |
nghỉ lễ |
#FF5A5A |
{name} |
ngày có "nghỉ lễ" của nguồn Việt hiện nguyên văn, màu đỏ |
Tô một ngày âm lịch bằng quy tắc
Ô "Từ" cũng có thể viết một ngày thay cho một từ, nhờ đó tô được ngày mà không nguồn nào có:
| Viết gì |
Nghĩa |
{lunar: d=15} |
ngày rằm (15) của mọi tháng âm, kể cả tháng nhuận |
{lunar: m=8, d=15} |
15 tháng 8 âm (tháng thường, không phải tháng nhuận) |
{lunar: m=8L, d=15} |
15 tháng 8 nhuận; {lunar: m=8, d=15, leap} cũng là nghĩa đó |
{lunar: m=9} |
mọi ngày của tháng 9 âm |
{solar: m=4, d=30} |
ngày 30 tháng 4 dương lịch |
m là tháng, d là ngày, cách nhau bằng dấu phẩy; thứ tự, chữ hoa thường và dấu cách đều được.
m=8L, hoặc thêm ô leap, để chỉ lấy tháng nhuận; có tháng mà không thêm gì thì là tháng
thường. Chỉ ghi d mà không ghi tháng thì tháng nhuận cũng được tính.
solar không có tháng nhuận, nên không dùng L hay leap.
- Ngày dương có thể đến 31, ngày âm tối đa 30; ngày mà tháng đã ghi không có (ví dụ 30 tháng 2)
cũng là viết sai.
- Muốn tô cả tháng thường và tháng nhuận của cùng một số thì viết hai mục:
{lunar: m=8, d=15} và {lunar: m=8L, d=15}.
- Viết sai (khóa lạ, giá trị quá giới hạn, lặp ô, không có ngày) thì mục đó không tô ngày nào.
- Ngày âm được đọc theo lịch mà công tắc ở trên nói: bật thì theo lịch Việt Nam, tắt thì theo lịch Trung
Quốc mà các ô đang hiện.
- Ngày có sự kiện được quy tắc của nguồn khớp thì do quy tắc đó quyết định; quy tắc kiểu này chỉ
dùng cho những ngày không quy tắc nguồn nào tô.
- Quy tắc kiểu này không có nguyên văn sự kiện nên
{name} rỗng; để trống Chữ là giữ ngày.
Mỗi mục một mẫu ngày.
Một bộ ngày lễ Việt Nam (mỗi dòng là một mục trong danh sách):
| Từ |
Màu |
Chữ |
Tác dụng |
{lunar: d=1} |
#FF5A5A |
(trống) |
mùng 1 mọi tháng âm, màu đỏ, giữ ngày âm |
{lunar: d=15} |
#FF5A5A |
(trống) |
ngày rằm mọi tháng âm, màu đỏ, giữ ngày âm |
{lunar: m=1, d=1} |
#E81123 |
Tết Nguyên đán |
Tết Nguyên đán |
{lunar: m=3, d=10} |
#E81123 |
Giỗ tổ Hùng Vương |
Giỗ tổ Hùng Vương |
{lunar: m=5, d=5} |
#E81123 |
Đoan Ngọ |
Tết Đoan Ngọ |
{lunar: m=8, d=15} |
#E81123 |
Tết Trung thu |
Tết Trung thu |
{lunar: m=12, d=23} |
#E81123 |
Ông Táo |
Ông Táo về trời |
{solar: m=4, d=30} |
#E81123 |
Ngày Thống nhất |
Ngày Thống nhất đất nước |
{solar: m=9, d=2} |
#E81123 |
Quốc khánh |
Quốc khánh |
Chữ cần bỏ
Chuỗi viết ở đây bị xóa khỏi chữ hiển thị đúng như đã viết, mọi lần xuất hiện (kể cả ngoặc và dấu cách).
Nó chỉ đổi phần hiển thị, không đổi việc quy tắc nào khớp. Mặc định là dấu của nguồn Trung Quốc:
(休) 国庆节(休) hiện 国庆节
(班) cũng vậy; nếu quy tắc cho chữ cố định thì chữ đó được hiện. Có thể thêm dấu của nguồn
khác, ví dụ (nghỉ bù). Mặc định chỉ có dạng ngoặc full-width; hãy tự thêm (休), (班) hoặc
cách viết khác. Xóa hết danh sách thì không bỏ gì.
Nếu xóa hết tên, chỉ còn màu hoặc ngày.
Nguồn dữ liệu
Mod không kèm dữ liệu ngày lễ và chỉ đọc địa chỉ bạn nhập. Ví dụ:
- Ngày lễ Trung Quốc của Apple iCloud:
https://p10-calendars.icloud.com/holiday/CN_zh.ics
- Ngày lễ Việt Nam của Apple iCloud:
https://p10-calendars.icloud.com/holiday/VN_vi.ics
https://holiday.ailcc.com/api/holiday/ics (Trung Quốc, nhiều năm một lần)
Mỗi sự kiện trong nguồn trông như thế này, và "Từ" của quy tắc được tìm trong đó:
SUMMARY:春节(休)
Các link .ics thường dùng theo ngày đều được. Nếu đọc lại thất bại, các dấu đã tải vẫn giữ; khi chưa
có dữ liệu, lịch vẫn hiện nội dung hệ thống (hoặc lịch Việt Nam) và quy tắc ngày.
Ghi công
Cách tìm cửa sổ lịch dựa theo mod
Agenda in Calendar View
của lonfro (GPL-3.0); các helper gọi xuyên luồng dựa theo
Windows 11 Notification Center Styler của m417z.
Lịch âm Việt Nam do @phatMT97 và
@vantruong-dev đóng góp, sử dụng thuật toán thiên văn dựa trên
Astronomical Algorithms (Jean Meeus, xuất bản lần 2 năm 1998, chương 25 & 49) và Claus Tøndering Calendar FAQ.