获取当前农历日期的函数
参数说明
示例用法
参数 | 类型 | 是否必须 | 默认值 | 说明 |
---|---|---|---|---|
withYear | boolean | 否 | false | 是否显示农历年 |
import { lunarCalendarDate } from 'lunar-calendar-date'
const lunarDate = lunarCalendarDate()
const lunarDateWithYear = lunarCalendarDate(true)
console.log(lunarDate) // 七月廿九
console.log(lunarDateWithYear) // 庚子(鼠)年七月廿九
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。