# Functions

FormatInterval converts a duration into the units that Grafana uses.
GetIntervalFrom returns the minimum interval.
NewTimeRange creates a new TimeRange of From and To.
ParseDuration parses a duration with support for all units that Grafana uses.
ParseInterval parses an interval with support for all units that Grafana uses.
ParseIntervalStringToTimeDuration converts a string representation of a expected (i.e.
RoundInterval returns a predetermined, lower and rounder duration than the given nolint:gocyclo.
WithLocation time range option to set the start month of fiscal year.
WithLocation time range option uses the given location loc as the timezone of the time range if unspecified.
WithNow time range option to set the current time as t.
WithRoundUp time range option to set the rounding of time to the end of the period instead of the beginning.
WithWeekstart time range option to set given weekday as the start of the week.

# Structs

No description provided by the author

# Type aliases

TimeRangeOption option for how to parse time ranges.