From 1b645c63ed726b9067cc9874b502bc94677c32e4 Mon Sep 17 00:00:00 2001 From: Daniel Rocha Date: Wed, 6 Mar 2019 11:09:20 +0100 Subject: [PATCH] Change default time format layout --- htp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htp.go b/htp.go index 12bbd48..3558557 100644 --- a/htp.go +++ b/htp.go @@ -18,11 +18,13 @@ const ( Second = 1000 * Millisecond ) +const UnixDateMilli = "Mon Jan _2 15:04:05.000 MST 2006" + func main() { host := flag.String("u", "https://google.com", "Host URL") count := flag.Uint("n", 8, "Number of requests") quiet := flag.Bool("q", false, "Do not output time offset") - layout := flag.String("f", time.RFC3339Nano, "Time layout") + layout := flag.String("f", UnixDateMilli, "Time format layout") flag.Parse() logger := log.New(os.Stderr, "", 0)