mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-11-16 23:49:20 +08:00
14 lines
194 B
Go
14 lines
194 B
Go
package utils
|
|
|
|
import "time"
|
|
|
|
func GetNowTime() string {
|
|
t := time.Now().Format("2006-01-02 15:04:05")
|
|
return t
|
|
}
|
|
|
|
func GetNowDate() string {
|
|
t := time.Now().Format("2006-01-02")
|
|
return t
|
|
}
|