package main
import (
"fmt"
"time"
)
func main() {
//6-1-2-3(15)-4-5
var now = time.Now().Format("2006-01-02 15:04:05")
fmt.Println(now)
}
Go:Date/Time Format
最新推荐文章于 2024-05-05 11:22:37 发布
package main
import (
"fmt"
"time"
)
func main() {
//6-1-2-3(15)-4-5
var now = time.Now().Format("2006-01-02 15:04:05")
fmt.Println(now)
}