package
Version:
v0.0.0-...-60192f8
Opens a new window with list of versions in this module.
Published: Apr 26, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package timetoken is a simple utility to convert a text into a time value.
TimeToken contains the parsed token information.
New parses a text and returns a TimeToken instance.
The text can be:
"now", "-<n><unit>", "+<n><unit>" or an absolute time.
RelativeTo returns the time.Time value relative to the
time given in its argument. If the input is nil, it's
relative to time.Now().
Source Files
¶
Click to show internal directories.
Click to hide internal directories.