dates

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseReleaseTime

func ParseReleaseTime(raw string) (time.Time, error)

ParseReleaseTime parses a provider release time. It accepts full RFC3339 timestamps and YYYY-MM-DD dates, using 23:59:59 UTC for date-only metadata.

Types

type ReleaseTime

type ReleaseTime struct {
	time.Time
}

ReleaseTime is provider release metadata decoded for cooldown. Full timestamps are kept exact; date-only values are interpreted as the last second of that UTC day so a release is not treated as old too early.

func (*ReleaseTime) UnmarshalJSON

func (t *ReleaseTime) UnmarshalJSON(data []byte) error

func (*ReleaseTime) UnmarshalYAML

func (t *ReleaseTime) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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