日期格式转换
LOC,_ := time.LoadLocation("Asia/Shanghai")
AddTime := "2021-06-10 13:55:31"
tt,err:=time.ParselnLocation("2006-1-2 15:04:05",AddTime,LOC) if err!= nil {
panic("error!")}
fmt.Printf("addTime: %s, after transfer is: ",AddTime)
println(tt.Unix())