Releases: dromara/carbon
Releases · dromara/carbon
v2.4.1
v2.4.0
- Fixed
Farsi
language translation bug #247 - Fixed
gregorian
calendar tolunar
calendar bug #246 - Updated the minimum version of Go required to
1.17
#245 - Optimized
ParseByLayout
andgetLocationByTimezone
methods when the timezone is empty - Optimized the scenario of JSON unmarsha when the value of the JSON string is empty or null
- Removed
Tag
struct and related methods - Added
Arabic
language support #250
v2.3.12
v2.3.11
- Add parsing support for
2006-01-02 15:04:05-0700 MST
format inParse
method - Return the original value instead of returning null when parsing the zero value time
0001-01-01 00:00:00
inParse
method #232 - Optimize the judgment logic in
IsValid
andIsInvalid
methods - Implement
Abs
method by itself inDiffAbsInDuration
method #226 - Unified unit test format
v2.3.10
- Fixed bug when
json.Unmarshaler
decoded a json string containing null value - Add
ISO8601ZuluLayout
,ISO8601ZuluMilliLayout
,ISO8601ZuluMicroLayout
,ISO8601ZuluNanoLayout
constants - Add
FormattedDateLayout
,FormattedDayDateLayout
constants - Add
ISO8601ZuluFormat
,ISO8601ZuluMilliFormat
,ISO8601ZuluMicroFormat
,ISO8601ZuluNanoFormat
constants - Add
FormattedDateFormat
,FormattedDayDateFormat
constants - Add
ToIso8601ZuluString
,ToIso8601ZuluMilliString
,ToIso8601ZuluMicroString
,ToIso8601ZuluNanoString
methods - Add
ToFormattedDateString
,ToFormattedDayDateString
methods - Add
GoString
method - Support json strings containing null when using
json.Unmarshaler
#225 - Remove deprecated
ToFormatString
method, useFormat
method instead - Remove deprecated
ToLayoutString
method, useLayout
method instead
v2.3.9
v2.3.8
v2.3.7
v2.3.6
- Extract the calendar as an independent sub package
- Add
CreateFromLunar
method, create aCarbon
instance fromLunar
date and time - Fix concurrent map read and map write in
ToMonthString
,ToShortMonthString
,ToWeekString
,ToShortWeekString
,Season
,Constellation
methods #180 - Improve
unit
andbenchmark
test coverage