u_time.go 173 B

123456789
  1. package util
  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. }