import{_ as s,c as n,a2 as i,o as e}from"./chunks/framework.BI-rd6Wj.js";const g=JSON.parse('{"title":"Lunar to Gregorian Calendar Conversion","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/from-lunar.md","filePath":"en/guide/from-lunar.md"}'),t={name:"en/guide/from-lunar.md"};function r(l,a,o,h,p,d){return e(),n("div",null,a[0]||(a[0]=[i(`
When dealing with leap months in the Lunar Calendar, a single Lunar date may correspond to two Gregorian dates. In such cases, the function returns an object to handle both dates.
console.log(getSolarDateFromLunar('2001-03-05'));
// {date: '2001-03-29', leapMonthDate: undefined}
console.log(getSolarDateFromLunar('2001-04-05'));
// {date: '2001-04-27', leapMonthDate: '2001-05-27'}