+ OperationTime2StrWithSecond

This commit is contained in:
gazebo
2019-08-21 17:38:06 +08:00
parent cdc5ec75b3
commit 2769f18ab4

View File

@@ -622,6 +622,11 @@ func GetNextTimeFromList(now time.Time, timeList []string) (snapshotAt time.Time
return selectTime
}
func OperationTime2StrWithSecond(opTime int16) (str string) {
str = fmt.Sprintf("%02d:%02d:00", opTime/100, opTime%100)
return str
}
func OperationTime2Str(opTime int16) (str string) {
str = fmt.Sprintf("%02d:%02d", opTime/100, opTime%100)
return str