v2.6.2
English
- Remove
hour,Minute,secondparameter inCreateFromLunar,CreateFromPersianmethods - Change some format symbol definitions involves symbols such as
U,V,X,S,TZ,u,v,x,z - Fix bug of incorrect judgment of
IsLeapMonthin lunar calendar - Fix bug of
AtomFormatandAtomLayoutreturn inconsistent value - Fix bug of
RFC3339FormatandRFC3339Layoutreturn inconsistent value time.Localis not updated when setting global time zone- Add format symbol
oto get time zone offset - Add
TimestampLayout,TimestampMilliLayout,TimestampMicroLayoutandTimestampNanoLayoutconstants - Add
TimestampFormat,TimestampMilliFormat,TimestampMicroFormatandTimestampNanoFormatconstants - Add
DateTimeMilli,DateTimeMicro,DateTimeNanofield types - Add
DateMilli、DateMicro、DateNanofield types - Add
TimeMilli、TimeMicro、TimeNanofield types - Fix missing timezone bug in
IsDSTmethod - Fix missing timezone bug
StartOfXXX,EndOfXXXmethods - Fix missing timezone bug when converting other calendars to
Gregoriancalendar time.Localis not updated when setting default timezone- Add
MaxDuration,MinDurationmethods
中文
CreateFromLunar,CreateFromPersian方法去掉 hour, minute, second 参数- 更改部分格式符号定义,涉及到的符号有
U,V,X,S,TZ,u,v,x,z - 修复农历中
IsLeapMonth判断错误的 bug - 修复
AtomFormat和AtomLayout格式返回值不一致的 bug - 修复
RFC3339Format和RFC3339Layout格式返回值不一致的 bug - 设置全局默认时区时不再同步更新
time.Local - 新增格式符号
o来获取时区偏移量 - 新增
TimestampLayout、TimestampMilliLayout、TimestampMicroLayout和TimestampNanoLayout常量 - 新增
TimestampFormat、TimestampMilliFormat、TimestampMicroFormat和TimestampNanoFormat常量 - 新增
DateTimeMilli、DateTimeMicro、DateTimeNano字段类型 - 新增
DateMilli、DateMicro、DateNano字段类型 - 新增
TimeMilli、TimeMicro、TimeNano字段类型 - 修复
IsDST方法丢失时区的 bug - 修复
StartOfXXX、EndOfXXX部分方法丢失时区的 bug - 修复其他日历转化为公历时缺失时区的 bug
- 设置默认时区时不再同步更新
time.Local - 新增
MaxDuration、MinDuration方法