u_time.go 174 B

123456789
  1. package cutil
  2. import "time"
  3. func GetNowTimeCustom() string {
  4. currentTime := time.Now()
  5. formattedTime := currentTime.Format("2006-01-02-15-04-05")
  6. return formattedTime
  7. }