Releases: yaa110/go-persian-calendar
Releases · yaa110/go-persian-calendar
v1.3.0
28 Sep 16:09
Compare
Sorry, something went wrong.
No results found
Add time comparison methods: Before, After, Compare and Equal.
Change minimum require Go version to 1.20
v1.2.2
20 Jul 23:00
Compare
Sorry, something went wrong.
No results found
improve Format() performance and minor tweaks (Thanks to @janishorsts )
$ go test -bench=. -benchmem -count=10 > a.txt # before changes
$ go test -bench=. -benchmem -count=10 > b.txt # after changes
$ benchstat a.txt b.txt
goos: darwin
goarch: arm64
pkg: github.com/yaa110/go-persian-calendar
cpu: Apple M2 Max
│ a.txt │ b.txt │
│ sec/op │ sec/op vs base │
Format-12 3440.0n ± 1% 822.5n ± 1% -76.09% (p=0.000 n=10)
│ a.txt │ b.txt │
│ B/op │ B/op vs base │
Format-12 5995.0 ± 0% 256.0 ± 3% -95.73% (p=0.000 n=10)
│ a.txt │ b.txt │
│ allocs/op │ allocs/op vs base │
Format-12 64.00 ± 2% 10.00 ± 10% -84.38% (p=0.000 n=10)
v1.2.1
17 Aug 13:38
Compare
Sorry, something went wrong.
No results found
fixes #28 where the New() function for creating the time struct did n…
v1.2.0
29 Mar 13:49
Compare
Sorry, something went wrong.
No results found
Breaking Changes
retrun a new instance of Time from In :
use:
pt := ptime .Now ().In (ptime .Iran ())
instead of:
pt := ptime .Now ()
pt .In (ptime .Iran ())
v1.1.5
12 Jul 03:29
Compare
Sorry, something went wrong.
No results found
fix #26 normalize components to avoid panics
limitation: the minimum value of Gregorian year is 1097, otherwise a zero instance of ptime.Time is returned.
v1.1.4
15 May 11:29
Compare
Sorry, something went wrong.
No results found
fix timezone offset show bug
v1.1.3
10 Aug 10:22
Compare
Sorry, something went wrong.
No results found
time format: fix index out of range
format: fix order of markers
v1.1.0
23 Jul 09:03
Compare
Sorry, something went wrong.
No results found
Add DayTime type to get time of the day
v1.0.2
02 Jun 15:58
Compare
Sorry, something went wrong.
No results found
README: place changelog section after getting started