aardio 文档
time.ganzhi 库模块帮助文档
time 成员列表 #
time.ganzhi() #
返回对象:TimeGanzhiObject
time.ganzhi(dateTime,useLichun) #
创建干支对象
- dateTime: 日期,可指定 time 对象,time.lunar 对象,
或者包含公历日期时间的字符串(可自右向左省略秒、分、时部分)。
- useLichun: true以立春为年界(默认,八字), false以正月初一为界
返回对象:TimeGanzhiObject
time.ganzhi 成员列表 #
干支计算库
支持八字四柱干支计算
time.ganzhi.getDay(date) #
获取日干支
time.ganzhi.getHour(date) #
获取时辰干支
time.ganzhi.getMonth(date) #
获取月干支(以节气为界)
time.ganzhi.getShiName(hour) #
获取时辰名称
time.ganzhi.getYear(date,useLichun) #
获取年干支
time.ganzhi.getZodiac(date,useLichun) #
获取生肖
TimeGanzhiObject 成员列表 #
TimeGanzhiObject.bazi #
八字
TimeGanzhiObject.datetime #
原始时间
TimeGanzhiObject.day #
日柱
返回对象:TimeGanzhiPillarObject
TimeGanzhiObject.hour #
时柱
返回对象:TimeGanzhiPillarObject
TimeGanzhiObject.lunar #
农历对象
返回对象:TimeLunarObject
TimeGanzhiObject.month #
月柱
返回对象:TimeGanzhiPillarObject
TimeGanzhiObject.year #
年柱
返回对象:TimeGanzhiPillarObject
TimeGanzhiObject.zodiac #
生肖
TimeGanzhiPillarObject 成员列表 #
TimeGanzhiPillarObject.gan #
天干
TimeGanzhiPillarObject.ganIndex #
天干索引(0-9)
TimeGanzhiPillarObject.name #
干支名称
TimeGanzhiPillarObject.zhi #
地支
TimeGanzhiPillarObject.zhiIndex #
地支索引(0-11)
Markdown 格式