date format

This commit is contained in:
solar
2019-03-05 17:34:54 +08:00
parent 1d9c4896c8
commit 33c0a0dfe4
3 changed files with 10 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ import "time"
func GetNowStr(isClient bool) string {
var msg string
msg += time.Now().Format("2006-01-02 15:04:05")
msg += time.Now().Format("2006-01-02 15:04:05.000")
if isClient {
msg += "| cli -> ser |"
} else {