+GetAvailableDeliverTime

This commit is contained in:
gazebo
2019-11-26 16:16:54 +08:00
parent d0f59c3f4b
commit 2d1bfa4c1e
5 changed files with 127 additions and 6 deletions

View File

@@ -119,6 +119,10 @@ func JxOperationTime2StrTime(value int16) string {
return fmt.Sprintf("%02d:%02d", value/100, value%100)
}
func JxOperationTime2TimeByDate(value int16, tm time.Time) (outTm time.Time) {
return utils.Str2TimeWithDefault(fmt.Sprintf("%s %02d:%02d:00", utils.Time2DateStr(tm), value/100, value%100), utils.DefaultTimeValue)
}
func GetPolygonFromCircle(lng, lat, distance float64, pointCount int) (points [][2]float64) {
points = make([][2]float64, pointCount)
for k := range points {