Releases: dromara/carbon
Releases · dromara/carbon
v2.2.12
v2.2.11
v2.2.10
v2.2.9
v2.2.8
- Rename
isTestNow
method tohasTestNow
- Fixe the wrong type of automatically update time when using
gorm
#182 - Add
Time
struct andToTimeStruct
method - Add
TimeMilli
struct andToTimeMilliStruct
method - Add
TimeMicro
struct andToTimeMicroStruct
method - Add
TimeNano
struct andToTimeNanoStruct
method
v2.2.7
v2.2.6
- Fix bug in
DiffInYears
andAge
methods #181 - Fix bug with lost time zone after
json.Unmarshal
#178 - Move
CreateFromStdTime
method fromcarbon.go
tocreator.go
- Move
ToStdTime
method fromcarbon.go
tooutputer.go
- Move deprecated methods as
FromStdTime
,Time2Carbon
andCarbon2Time
todeprecated.go
- Update
stretchr/testify
to v1.8.4
v2.2.5
v2.2.4
- Fix thread unsafe bugs caused by concurrent reads and writes in some methods #180
- Fix
DiffInMonths
method bug #165 - Add
CreateFromStdTime
method,FromStdTime
,Time2Carbon
,Carbon2Time
methods addDeprecated
flag and will be removed in the future - Add
Iranian
language support #175 - Increase unit testing coverage to 100%