2024-03-13 01:29:40 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
func GetMinimumVersionCutoff() time.Time {
|
2024-03-27 08:50:52 +00:00
|
|
|
return time.Date(2024, time.March, 27, 8, 30, 0, 0, time.UTC)
|
2024-03-13 01:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func GetMinimumVersion() []byte {
|
2024-03-27 08:50:52 +00:00
|
|
|
return []byte{0x01, 0x04, 0x0D}
|
2024-03-13 01:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func GetVersion() []byte {
|
2024-03-27 08:50:52 +00:00
|
|
|
return []byte{0x01, 0x04, 0x0D}
|
2024-03-13 01:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func GetVersionString() string {
|
2024-03-24 08:11:58 +00:00
|
|
|
return FormatVersion(GetVersion())
|
|
|
|
}
|
|
|
|
|
|
|
|
func FormatVersion(version []byte) string {
|
2024-03-17 21:14:37 +00:00
|
|
|
return fmt.Sprintf(
|
|
|
|
"%d.%d.%d",
|
2024-03-24 08:11:58 +00:00
|
|
|
version[0], version[1], version[2],
|
2024-03-17 21:14:37 +00:00
|
|
|
)
|
2024-03-13 01:29:40 +00:00
|
|
|
}
|