08ea5fbe98
添加用户管理视图、API和状态管理文件
14 lines
454 B
TypeScript
14 lines
454 B
TypeScript
import lunarUtils from './src/utils/lunarUtils'
|
|
|
|
const today = new Date(2026, 0, 20)
|
|
const lunarDate = lunarUtils.solarToLunar(
|
|
today.getFullYear(),
|
|
today.getMonth() + 1,
|
|
today.getDate()
|
|
)
|
|
|
|
console.log('公历日期:', today.toISOString().split('T')[0])
|
|
console.log('农历日期:', lunarDate.yearStr, lunarDate.monthStr, lunarDate.dayStr)
|
|
console.log('生肖:', lunarDate.zodiac.name)
|
|
console.log('闰月:', lunarDate.isLeapMonth ? '是' : '否')
|