Skip to content

Releases

Release v0.1.9

Choose a tag to compare

@github-actions github-actions released this 01 Oct 08:05
  • fix parsing %p to reinterpret the hour on a 12-hour clock
  • fix parsing %s to validate the range of Unix time
  • fix parsing %s in a location or with %z to keep the absolute time
  • fix parsing %G and %g without %V to start at the first week of the ISO year
  • fix parsing %G and %g to return error with non-ISO date directives
  • fix parsing week date directives (%V, %U, %W) with leap second
  • fix parsing time zone name of %Z following %z
  • fix parsing %Z for numeric and mixed case time zone abbreviations (+07, ChST)
  • fix parsing %Z not to retain the source string in the time zone name
  • fix %^Z and %#Z mangling digits and symbols in time zone name
  • fix %#Z panicking on a single-character time zone name
  • fix error messages of non-ASCII format directives and characters
  • improve performance of parsing by avoiding defer (10-28% less time in benchmarks)
  • improve performance of parsing a byte slice converted to a string (no allocation up to 32 bytes)
  • improve performance of formatting by emitting digits at once (2-6% less time in benchmarks)

Release v0.1.8

Choose a tag to compare

@github-actions github-actions released this 01 Apr 08:32
  • fix parsing negative year and Unix time (%Y, %G, %s)
  • fix formatting negative year, century, Unix time (%Y, %G, %C, %y, %g, %s)
  • fix %g parsing to use the same two-digit year threshold 69 as %y
  • fix %s formatting and parsing on 32-bit platforms
  • support parsing time zone offset with %:::z
  • improve performance of parsing/formatting compound directives

Release v0.1.7

Choose a tag to compare

@github-actions github-actions released this 01 Oct 14:09
  • refactor code using built-in min and max functions

Release v0.1.6

Choose a tag to compare

@github-actions github-actions released this 01 Jun 14:25
  • support parsing week directives (%A, %a, %w, %u, %V, %U, %W)
  • validate range of values on parsing directives
  • fix formatting %l to show 12 at midnight

Release v0.1.5

Choose a tag to compare

@itchyny itchyny released this 01 Dec 11:42
  • support parsing time zone offset with name using both %z and %Z

Release v0.1.4

Choose a tag to compare

@itchyny itchyny released this 01 Sep 12:59
  • improve documents
  • drop support for Go 1.16

Release v0.1.3

Choose a tag to compare

@itchyny itchyny released this 14 Apr 11:58
  • implement ParseInLocation for configuring the default location

Release v0.1.2

Choose a tag to compare

@itchyny itchyny released this 22 Feb 13:24
  • implement parsing/formatting time zone offset with colons (%:z, %::z, %:::z)
  • recognize Z as UTC on parsing time zone offset (%z)
  • fix padding on formatting time zone offset (%z)

Release v0.1.1

Choose a tag to compare

@itchyny itchyny released this 01 Sep 01:55
  • Fix compile error on 32-bit architectures.

Release v0.1.0

Choose a tag to compare

@itchyny itchyny released this 22 Aug 11:51

Initial release.

⌂ 换网址