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

@@ -10,9 +10,9 @@ import (
hp "github.com/40t/go-sniffer/plugSrc/http/build"
mongodb "github.com/40t/go-sniffer/plugSrc/mongodb/build"
mysql "github.com/40t/go-sniffer/plugSrc/mysql/build"
redis "github.com/40t/go-sniffer/plugSrc/redis/build"
mssql "github.com/feiin/go-sniffer/plugSrc/mssql/build"
mysql "github.com/feiin/go-sniffer/plugSrc/mysql/build"
"github.com/google/gopacket"
)

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 {

View File

@@ -9,7 +9,7 @@ import (
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 {