| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Package period has types that represent ISO-8601 periods of time.
The two core types are
These two can be converted to the other.
Period also allows various calculations to be made. Its fields each hold up to 19 digits precision.
The API is now stable for v1.
The old version of this was github.com/rickb777/date/period, which had very limited number range and used fixed-point arithmetic.
The new version, here, depends instead on github.com/govalues/decimal, which gives a huge (but finite) number range. There is now a 'weeks' field, which the old version did not have (it followed time.Time API patterns, which don't have weeks).
These functions have changed:
These methods have changed:
| Back | FazBrowse Home | New Git URL |