Repository navigation
Releases
Releases · itchyny/timefmt-go
Release v0.1.9
- fix parsing
%pto reinterpret the hour on a 12-hour clock - fix parsing
%sto validate the range of Unix time - fix parsing
%sin a location or with%zto keep the absolute time - fix parsing
%Gand%gwithout%Vto start at the first week of the ISO year - fix parsing
%Gand%gto return error with non-ISO date directives - fix parsing week date directives (
%V,%U,%W) with leap second - fix parsing time zone name of
%Zfollowing%z - fix parsing
%Zfor numeric and mixed case time zone abbreviations (+07,ChST) - fix parsing
%Znot to retain the source string in the time zone name - fix
%^Zand%#Zmangling digits and symbols in time zone name - fix
%#Zpanicking 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
- fix parsing negative year and Unix time (
%Y,%G,%s) - fix formatting negative year, century, Unix time (
%Y,%G,%C,%y,%g,%s) - fix
%gparsing to use the same two-digit year threshold 69 as%y - fix
%sformatting and parsing on 32-bit platforms - support parsing time zone offset with
%:::z - improve performance of parsing/formatting compound directives
Release v0.1.7
- refactor code using built-in
minandmaxfunctions
Release v0.1.6
- support parsing week directives (
%A,%a,%w,%u,%V,%U,%W) - validate range of values on parsing directives
- fix formatting
%lto show12at midnight
Release v0.1.5
- support parsing time zone offset with name using both
%zand%Z
Release v0.1.4
- improve documents
- drop support for Go 1.16
Release v0.1.3
- implement
ParseInLocationfor configuring the default location
Release v0.1.2
- implement parsing/formatting time zone offset with colons (
%:z,%::z,%:::z) - recognize
Zas UTC on parsing time zone offset (%z) - fix padding on formatting time zone offset (
%z)
Release v0.1.1
- Fix compile error on 32-bit architectures.