Discover Packages
github.com/dapr/kit
time
package
Version:
v0.15.0
Opens a new window with list of versions in this module.
Published: Feb 5, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package time contains utilities for working with times, dates, and durations.
func ParseDuration(from string) (int, int, int, time.Duration, int, error)
func ParseISO8601Duration(from string) (years int, months int, days int, duration time.Duration, repetition int, ...)
func ParseTime(from string, offset *time.Time) (time.Time, error)
ParseDuration creates time.Duration from either:
- ISO8601 duration format
- time.Duration string format
ParseTime creates time.Duration from either:
- ISO8601 duration format
- time.Duration string format
- RFC3339 datetime format
For duration formats, an offset is added.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.