Documentation ¶
Overview ¶
Package detctime is a repository containing some miscellaneous subpackages related to time or duration, each subpackage is a small mini-library usually designed to do one specific thing.
See the various subpackages/subfolders for the documentation relating to each library
Index ¶
Constants ¶
View Source
const DECT = "DectTime"
DECT is just here so there is something here to make sure go get will work properly
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package durationparser contains a duration parser created to have a wider range of units than the stdlib time.ParseDuration and to attempt to take into account the variability in calender units such as months or years To do this it uses a time.Time reference and custom transform functions for certain units instead of a duration sum with fixed units, as such all durations are parsed relative to a point in time, using `ParseAt` you can specify what time to use, or you can use `Parse` to parse relative to time.Now or `ParseStatic` to parse relative to a blank time.Time{} It also includes some extra customisability like the ability to create custom units or set a max or minimum duration
|
Package durationparser contains a duration parser created to have a wider range of units than the stdlib time.ParseDuration and to attempt to take into account the variability in calender units such as months or years To do this it uses a time.Time reference and custom transform functions for certain units instead of a duration sum with fixed units, as such all durations are parsed relative to a point in time, using `ParseAt` you can specify what time to use, or you can use `Parse` to parse relative to time.Now or `ParseStatic` to parse relative to a blank time.Time{} It also includes some extra customisability like the ability to create custom units or set a max or minimum duration |
Click to show internal directories.
Click to hide internal directories.