https://6tail.cn/calendar/api.html
非常牛逼
Unity將當前時間轉為天干地支
using System; using Lunar; using UnityEngine; public class GanZhiTimeConverter : MonoBehaviour { private void Start() { var solar = Solar.FromDate(DateTime.Now); Debug.Log(solar.Lunar.YearInGanZhi + "年 " + solar.Lunar.MonthInGanZhi + "月 " + solar.Lunar.DayInGanZhi + "日 " + solar.Lunar.TimeInGanZhi + "時"); } }