Skip to content

Commit

Permalink
Change default time format layout
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed Mar 6, 2019
1 parent 224dbb4 commit 1b645c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1b645c6

Please # to comment.