Skip to content

Commit

Permalink
Modify annotation information
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Jan 26, 2024
1 parent 1f87a15 commit dc11d26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions calendar/julian/julian.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewJulian(f float64) (j Julian) {
return
}

// ToJulian Convert Gregorian calendar to Julian calendar.
// ToJulian converts Gregorian calendar to Julian calendar.
// 将 公历 转化为 儒略历
func (g Gregorian) ToJulian() (j Julian) {
if g.IsZero() {
Expand All @@ -76,7 +76,7 @@ func (g Gregorian) ToJulian() (j Julian) {
return NewJulian(jd)
}

// ToGregorian Convert Julian calendar to Gregorian calendar.
// ToGregorian converts Julian calendar to Gregorian calendar.
// 将 儒略历 转化为 公历
func (j Julian) ToGregorian() (g Gregorian) {
if j.jd == 0 || j.mjd == 0 {
Expand Down
4 changes: 2 additions & 2 deletions calendar/lunar/lunar.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func NewLunar(year, month, day, hour, minute, second int, isLeapMonth bool) (l L
return
}

// ToLunar Convert Gregorian calendar to Lunar calendar.
// ToLunar converts Gregorian calendar to Lunar calendar.
// 将 公历 转化为 农历
func (g Gregorian) ToLunar() (l Lunar) {
daysInYear, daysInMonth, leapMonth := 365, 30, 0
Expand Down Expand Up @@ -141,7 +141,7 @@ func (g Gregorian) ToLunar() (l Lunar) {
return
}

// ToGregorian Convert Lunar calendar to Gregorian calendar.
// ToGregorian converts Lunar calendar to Gregorian calendar.
// 将 农历 转化为 公历
func (l Lunar) ToGregorian() (g Gregorian) {
if l.year < minYear || l.year > maxYear {
Expand Down

0 comments on commit dc11d26

Please sign in to comment.