Releases: dromara/carbon
Releases · dromara/carbon
v2.3.0
- Fix error in
DiffInMonths
method - Add
LoadTag
method, usecarbon
andtz
tags forMarshal
andUnmarshal
- Rename
ToANSICString
method toToAnsicString
- Set
nanoseconds
default to 0 inCreateFromDateTime
method - Set
hours
,minutes
andseconds
default to 0 inCreateFromDate
method #205 - Output different formats according to different tags in
String
method - Move
GormDataType
method fromjson.go
todatabase.go
⚠️ Remove the deprecatedFromStdTime
,Time2Carbon
,Carbon2Time
methods⚠️ RemoveDateTime
,DateTime
,DateTimeMilli
,DateTimeMicro
,DateTimeMicro
,DateTimeNano
,Date
,DateMilli
,DateMicro
,DateNano
,Timestamp
,TimestampMilli
,TimestampMicro
,TimestampNano
structs and related methods
v2.2.14
v2.2.13
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