GetBuildDate returns the build date as a time.Time
()
| 96 | |
| 97 | // GetBuildDate returns the build date as a time.Time |
| 98 | func 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 |
| 107 | func IsDevBuild() bool { |