摘要: 1. 时间类型转换为字符串类型 now := time.Now() fmt.Println(now.Format("2006-01-02 03:04:05 PM")) yesterday := time.Now().AddDate(0,0,-1).Format("2006-01-02") 2. go 阅读全文
posted @ 2017-12-29 18:29 iVictor 阅读(307) 评论(0) 推荐(0) 编辑