Go-carbon version 2.1.7 was released, better dates & times for golang

Carbon is a simple, semantic and developer-friendly golang package for datetime.

Carbon has been included by awesome-go , if you think it is helpful, please give me a star.

github.com/golang-module/carbon

Installation

Go version >= 1.16
go get -u github.com/golang-module/carbon/v2

import (
    "github.com/golang-module/carbon/v2"
)
Go version < 1.16
go get -u github.com/golang-module/carbon

import (
    "github.com/golang-module/carbon"
)           
Change log
  • Added IsSameXXX() series of methods, such as IsSameYear()
  • Added support for Romanian Language, translated by DrOctavius
  • Fixed known bugs
  • Optimized and streamline code