Skip to content

Releases: xhit/go-str2duration

v2.1.0

07 Dec 00:33
017325b
Compare
Choose a tag to compare

What's Changed

  • Convert duration to string supporting days and weeks by @xhit in #3

Full Changelog: v2.0.0...v2.1.0

v2.0.0

11 Aug 00:48
Compare
Choose a tag to compare

This version use the same time.ParseDuration from standard Go, but support for days and weeks where a day is 24 hour.

Support us for microsecond

08 Aug 05:24
Compare
Choose a tag to compare

µs and us are equivalent for microsecond

v1.1.0

02 Jul 02:59
Compare
Choose a tag to compare

This is a breaking change!

  • No need to use a Parser struct and initialize it.
  • NewStr2DurationParser function removed.
  • Str2Duration is a public function in the package and it's not part of a struct.

v1.0.1

02 Feb 06:37
Compare
Choose a tag to compare

Initial release