将string转化为time.Time
layout := "2006-01-02 15:04:05"
str := "2017-11-24 15:10:22"
a, err := time.Parse(layout, str)
if err != nil {
fmt.Println(err)
}
fmt.Println(a)
fmt.Println(reflect.TypeOf(a))
fmt.Println(a.UTC().Format("2006-01-02T15:04:05-0700"))
fmt.Println(time.Now().UTC().Format("2006-01-02T15:04:05-0700"))
fmt.Println(time.Now().Format("2006-01-02T15:04:05-0700"))