MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetBuildDate

Function GetBuildDate

internal/version/version.go:98–104  ·  view source on GitHub ↗

GetBuildDate returns the build date as a time.Time

()

Source from the content-addressed store, hash-verified

96
97// GetBuildDate returns the build date as a time.Time
98func GetBuildDate() (time.Time, error) {
99 info := GetBuildInfo()
100 if info.BuildDate == unknownBuildValue {
101 return time.Time{}, fmt.Errorf("build date not available")
102 }
103 return time.Parse(time.RFC3339, info.BuildDate)
104}
105
106// IsDevBuild returns true if this is a development build
107func IsDevBuild() bool {

Callers 1

TestGetBuildDateFunction · 0.85

Calls 1

GetBuildInfoFunction · 0.85

Tested by 1

TestGetBuildDateFunction · 0.68