]> granicus.if.org Git - pgbadger/commit
Implement begin/end hours without the date.
authorLuca Ferrari <fluca1978@gmail.com>
Fri, 24 May 2019 12:48:54 +0000 (14:48 +0200)
committerLuca Ferrari <fluca1978@gmail.com>
Fri, 24 May 2019 12:48:54 +0000 (14:48 +0200)
commitbf18f02b94e89f1100dc26d760f4762a05b4f038
treec431cb7c2e2d6121582da446ee9b3babc30c76ce
parent3ed53328d902958aafce05d237417cd77284ae39
Implement begin/end hours without the date.

See #495

The idea is to check the '--begin' and '--end' parameters to see if they
represent only a time instead of a timestamp, and then accept them placing the
value into '$from_hour' or '$to_hour' internal variables.
Then, in 'skip_unwanted_lines' check if the time of the line is not between
the limits, similarly to what is done with the timestamp check.
Return the same values as the timestamp check.
pgbadger