Discover Packages
github.com/grafana/gcx
internal
shared
package
Version:
v0.2.11
Opens a new window with list of versions in this module.
Published: Apr 29, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ParseDuration parses a duration string that can be:
- Go duration (e.g., "1h30m", "5m").
- Prometheus-style duration (e.g., "1h", "30m", "5s").
ParseTime parses a time string that can be either:
- RFC3339 format (e.g., "2024-01-15T10:30:00Z").
- Unix timestamp (e.g., "1705315800").
- Relative time (e.g., "now", "now-1h", "now-30m", "now-7d").
Source Files
¶
Click to show internal directories.
Click to hide internal directories.