Skip to content

Instantly share code, notes, and snippets.

View ioslh's full-sized avatar
😀

Lianghua ioslh

😀
View GitHub Profile
@mokejp
mokejp / rokuyo.py
Last active October 11, 2024 06:07
六曜の処理 python
# -*- coding: utf-8 -*-
from datetime import date, timedelta
# 六曜リスト
ROKUYO_TABLE = ['大安', '赤口', '先勝', '友引', '先負', '仏滅']
# 月別六曜開始位置リスト
ROKUYO_MONTH = [2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1]
# 新暦→旧暦の変換テーブル