Skip to content

v2.5.5

Choose a tag to compare

@kuafuRace kuafuRace released this 02 Apr 06:36
· 175 commits to v2.5.x since this release
English
  • golang minimum version dependency upgraded to 1.18

  • Change default global timezone from Local to UTC

  • Remove hour, Minute,second parameter in CreateFromLunar,CreateFromPersian methods

  • Change some format symbol definitions involves symbols such as U, V, X,S,T Z,u,v,x,z

  • Fix bug of incorrect judgment of IsLeapMonth in lunar calendar

  • Fix bug of AtomFormat and AtomLayout return inconsistent value

  • Fix bug of RFC3339Format and RFC3339Layout return inconsistent value

  • Fix missing timezone bug in IsDST method

  • Fix missing timezone bug StartOfXXX, EndOfXXX methods

  • Rename Offset method to ZoneOffset method

  • Rename IsSetTestNow method to IsTestNow method

  • Rename UnSetTestNow method to CleanTestNow method

  • Remove Location method, replaced by Timezone method

  • Change the judgment logic of IsValid and IsInvalid methods, zero time is no longer considered invalid time

  • Add ZoneName method to get the time zone name

  • Add HasError method to check if there is an error

  • Add WeekStartsAt method to get start day of the week

  • Add ParseWithLayouts and ParseWithFormats methods

  • Add format symbol o to get time zone offset

中文
  • golang 最低版本依赖升级到 1.18

  • 默认全局时区从 Local 更改为 UTC

  • CreateFromLunar, CreateFromPersian 方法去掉 hour, minute, second 参数

  • 更改部分格式符号定义,涉及到的符号有 U, V, X,S,T Z,u,v,x,z

  • 修复 IsDST 方法丢失时区的 bug

  • 修复 StartOfXXXEndOfXXX 部分方法丢失时区的 bug

  • 修复农历中 IsLeapMonth 判断错误的 bug

  • 修复 AtomFormatAtomLayout 格式返回值不一致的 bug

  • 修复 RFC3339FormatRFC3339Layout 格式返回值不一致的 bug

  • Offset 方法更名为 ZoneOffset

  • IsSetTestNow 方法更名为 IsTestNow

  • UnSetTestNow 方法更名为 CleanTestNow

  • 移除 Location 方法,由 Timezone 方法替代

  • 更改 IsValidIsInvalid 方法判断逻辑,zero time 不再视为无效时间

  • 新增 ZoneName 方法获取时区名称

  • 新增 HasError 方法判断是否有错误

  • 新增 WeekStartsAt 方法获取周起始日期

  • 新增 ParseWithLayoutsParseWithFormats 方法

  • 新增格式符号o 来获取时区偏移量