time.go 133 B

12345678
  1. package common
  2. import "time"
  3. // NowTime 时间格式化
  4. func NowTime() string {
  5. return time.Now().Format("2006-01-02 15:04:05")
  6. }