From 6f95cc863b858e62b32512ff2150af9a1b5f5aad Mon Sep 17 00:00:00 2001 From: Peleus <245629560@qq.com> Date: Tue, 23 Jan 2024 17:52:37 +0800 Subject: [PATCH] Solar->Gregorian --- calendar/lunar/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/calendar/lunar/README.md b/calendar/lunar/README.md index bebb3ee0..fda4cf90 100644 --- a/calendar/lunar/README.md +++ b/calendar/lunar/README.md @@ -23,7 +23,7 @@ by [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awesome-go" > Currently only `200` years from `1900` to `2100` are supported -##### Convert Solar into Lunar +##### Convert Gregorian into Lunar ```go // Get Lunar year of animal @@ -120,13 +120,13 @@ carbon.Parse("2020-03-21 19:00:00").Lunar().IsEleventhDoubleHour() // true carbon.Parse("2020-03-21 21:00:00").Lunar().IsTwelfthDoubleHour() // true ``` -##### Convert Lunar into Solar +##### Convert Lunar into Gregorian ```go -// Convert the Lunar Calendar December 11, 2023 to the Solar Calendar +// Convert the Lunar Calendar December 11, 2023 to the gregorian calendar carbon.CreateFromLunar(2023, 12, 11, 0, 0, 0, false).ToDateTimeString() // 2024-01-21 00:00:00 -// Convert lunar calendar February 11, 2023 to Solar calendar +// Convert lunar calendar February 11, 2023 to gregorian calendar carbon.CreateFromLunar(2023, 2, 11, 0, 0, 0, false).ToDateTimeString() // 2024-03-02 00:00:00 -// Convert the Lunar Calendar Leap February 11, 2024 to the Solar Calendar +// Convert the Lunar Calendar Leap February 11, 2024 to the gregorian calendar carbon.CreateFromLunar(2023, 2, 11, 0, 0, 0, true).ToDateTimeString() // 2023-04-01 00:00:00 ``` \ No newline at end of file