now := time.Now() layout := "2006-01-02 15:04:05" t := time.Unix(now.Unix(),0) // 引數分別是:秒數,納秒數 fmt.Println(t.Format(layout)) 1.
確定! 回上一頁