+ OperationTime2StrWithSecond
This commit is contained in:
@@ -622,6 +622,11 @@ func GetNextTimeFromList(now time.Time, timeList []string) (snapshotAt time.Time
|
|||||||
return selectTime
|
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) {
|
func OperationTime2Str(opTime int16) (str string) {
|
||||||
str = fmt.Sprintf("%02d:%02d", opTime/100, opTime%100)
|
str = fmt.Sprintf("%02d:%02d", opTime/100, opTime%100)
|
||||||
return str
|
return str
|
||||||
|
|||||||
Reference in New Issue
Block a user