{"repo":"godcong/chronos","free":true,"listed":false,"github":"https://github.com/godcong/chronos","clone":"git clone https://github.com/godcong/chronos.git","description":"Go library for Chinese calendar: Solar/Lunar conversion, 干支/节气/生肖 enums, 八字 analysis, and 五行 favorability for name selection","language":"Go","stars":103,"topics":["lunar","calendar","fate","solar"],"license":"MIT","category":"productivity","readme_excerpt":"chronos English 中文 --- English Overview chronos is a Go library for Chinese calendar calculations. It provides: - Solar/Lunar date conversion (1900–3000) - Heavenly Stems and Earthly Branches (天干地支) with type-safe enums - Solar Terms (节气) with astronomical precision via lunar-go - Chinese Zodiac (生肖) with LiChun boundary correction - Western Constellation (星座) lookup - Eight Characters (八字) analysis — Four Pillars, Five Elements, NaYin, Ten Gods, Hidden Stems, DaYun Installation Quick Start Parsing Dates Package Structure Key Types Type Description ------ ------------- Calendar Root interface for Solar + Lunar access Lunar Lunar calendar with 200+ traditional attributes Solar Gregorian calendar data TianGan Heavenly Stem enum (甲乙丙丁戊己庚辛壬癸) DiZhi Earthly Branch enum (子丑寅卯辰巳午未申酉戌亥) GanZhi Stem-Branch combination enum (60 甲子) SolarTerm Solar Term enum (24 节气) Zodiac Zodiac animal enum (12 生肖) Constellation Western constellation enum (12 星座) EightChar Eight Characters interface (Four Pillars, Five Elements, NaYin, etc.) Chinese Conversion All enum types implement the ChineseSupport interface: License MIT License --- 中文 概述 chronos 是一个 Go 语言的中国农历计算库，提供： - 阳历/阴历日期互转（支持 1900–3000 年） - 天干地支类型安全的枚举 - 基于天文算法的 24 节气计算（通过 lunar-go） - 带立春边界修正的生肖查询 - 西方星座查询 - 八字分析 — 四柱、五行、纳音、十神、藏干、大运 安装 快速开始 日期解析 包结构 核心类型 类型 说明 ------ ------ Calendar 根接口，提供 Solar + Lunar 访问 Lunar 阴历，包含 200+ 传统属性 Solar 阳历数据 TianGan 天干枚举（甲乙丙丁戊己庚辛壬癸） DiZhi 地支枚举（子丑寅卯辰巳午未申酉戌亥） GanZhi 干支组合枚举（60 甲子） SolarTerm 节气枚举（24 节气） Zodiac 生肖枚","default_branch":null,"files":null,"tree":[],"storefront":"/r/godcong","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/godcong/chronos/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}