godate
godate copied to clipboard
golang date manipulation library influenced by carbon
Whenever the difference between dates is being requested as WEEK and above there is a slight offset of about 1 millisecond. Due to this issue, a Millisecond was added in...
https://github.com/kofoworola/godate/blob/901a6699b13b68cae93494928b489ac0987b3ae2/main.go#L17 https://en.wikipedia.org/wiki/Leap_year
run godate.Now(time.UTC).Sub(1, godate.MONTH).EndOfMonth() give me Thu Jan 30 23:59:59 +0000 UTC 2020