SoFunction
Updated on 2025-03-05

Golang time processing library go-carbon v2.2.13 release details

carbon

carbon is a lightweight, semantic, developer-friendly golang time processing library that supports chain calls.

Currentlyawesome-goIncluded, if you think it's good, please give it a star

/golang-module/carbon

/golang-module/carbon

Install and use

Golang version is greater than or equal to 1.16

// Use the github librarygo get -u /golang-module/carbon/v2
import "/golang-module/carbon/v2"
// Use gitee librarygo get -u /golang-module/carbon/v2
import "/golang-module/carbon/v2"

Golang version is less than 1.16

// Use the github librarygo get -u /golang-module/carbon
import "/golang-module/carbon"
// Use gitee librarygo get -u /golang-module/carbon
import  "/golang-module/carbon"

Update log

  • Fixedlang/andlang/File translation error
  • FixedIsZeroMethod bug
  • NewIsDSTMethod, determine whether it is daylight saving time
  • NewClosestMethod to get the Carbon object closest to the specified Carbon object
  • NewFarthestMethod to obtain the Carbon object farthest from the specified Carbon object
  • WillRenamed tomodifier_test.goRenamed toboundary_test.go

The above is the detailed content of the Golang time processing library go-carbon v2.2.13 release details. For more information about go carbon time processing library, please pay attention to my other related articles!