一个简易帮助类,获取古代时间
A simple helper.Its main function is to get the ancient time.
- 使用
npm install @muxiandong/cc-ancient-helper
安装 npm
import { MF_Ancient_Helper } from '@muxiandong/cc-ancient-helper'
let a = MF_Ancient_Helper.convertSolarTimeToLunarTime(6, 20); // 六月二十
let b = MF_Ancient_Helper.translateTimeToAncientChineseFifthHour(19, 30); // 一更天
let c = MF_Ancient_Helper.translateTimeToAncientChineseTwelveHours(19); // 戌时