golang 时间格式化

package main import ( "fmt" "time" ) func main() { now := time.Now() fmt.Println(now) // 必须使用这个时间才能返回正确的格式化后的时间,其余的都不行 fmt.Println(now.Format("2006/1/2 15:04:05")) fmt.Pr
相关文章
相关标签/搜索