go string time to unixtime
func strtime2unix(strtime string) int {
tm2, _ := time.Parse("20060102150405", strtime)
fmt.Println(tm2.Unix())
return int(tm2.Unix())
}
本文链接地址:http://www.const.net.cn/324.html
func strtime2unix(strtime string) int {
tm2, _ := time.Parse("20060102150405", strtime)
fmt.Println(tm2.Unix())
return int(tm2.Unix())
}
本文链接地址:http://www.const.net.cn/324.html