detctime

package module
v0.0.0-...-52d0e0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: Unlicense Imports: 0 Imported by: 0

README

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL