This commit is contained in:
gazebo
2019-06-24 21:38:18 +08:00
parent d2597c2673
commit dffbae5430
5 changed files with 33 additions and 3 deletions

View File

@@ -255,6 +255,10 @@ func Float64TwoInt64(data float64) int64 {
return int64(math.Round(data))
}
func Float64ToStr(data float64) string {
return fmt.Sprint(data)
}
// timestamp is in second
func Timestamp2Str(timestamp int64) string {
return Time2Str(Timestamp2Time(timestamp))