Carbon is a lightweight, semantic, developer-friendly Golang time processing library that supports chain calls, lunar and mainstream ORMs such as GORM and XORM

If you feel good, please give a STAR

Github:github.com/golang-modu…

Gitee:gitee.com/go-package/…

Update log
  • Lunar().toYearString () changed to Lunar().toyearString ()
  • Lunar().toChinesemonthString () method changed to Lunar().tomonthString ()
  • Lunar().tochinesedayString () method changed to Lunar().todayString ()
  • The New() method was changed to NewCarbon() to avoid confusion over the similarity of New() and Now()
  • Optimize the CreaterFromXXX family of methods for handling the default nanosecond by setting the default nanosecond to the current nanosecond
  • Add unit test coverage scenarios
  • Increase the judgment of invalid time
  • The new Decade() method retrieves the current Decade
  • Added the StartOfDecade() method to get the start time of the current decade
  • The EndOfDecade() method is added to obtain the end time of the current decade
  • The new Season() method gets the current Season, which supports I18N
  • Added the StartOfSeason() method to get the start time of the current season
  • The EndOfSeason() method is added to obtain the end time of the current season
  • New IsSpring() method to check whether it IsSpring
  • The IsSummer() method is added to check whether it IsSummer
  • The IsAutumn() method is added to check whether it IsAutumn
  • The IsWinter() method is added to check whether it IsWinter