From 6a020f14694f7dff72a2d758e94c99e4583d3230 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Fri, 10 May 2019 06:32:44 +0200 Subject: [PATCH] Extend datetime format for starttime option --- acQuery.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/acQuery.pl b/acQuery.pl index ed72850..87f0791 100755 --- a/acQuery.pl +++ b/acQuery.pl @@ -40,7 +40,7 @@ my ($add, $from, $to); my $dateParser = DateTime::Format::Strptime->new( - pattern => '%d.%m.%Y', + pattern => '%d.%m.%Y/%H:%M', time_zone => 'Europe/Berlin', on_error => 'undef' ); @@ -440,7 +440,7 @@ arguments: If both arguments are positive integers the condition is start time between first argument and second argument. If the second argument is zero condition is start time smaller than first argument. If first argument is zero condition is start time larger than second argument. -Start time must be given as date in the following format: %d.%m.%Y +Start time must be given as date in the following format: %d.%m.%Y/%H:%M. =item B<--mem_used> Specify condition for average main memory capacity used by job. This option takes two @@ -476,6 +476,10 @@ file name as command line argument. =head1 EXAMPLES +C<./acQuery.pl --duration 5m 0 --numnodes 0 50> + +C<./acQuery.pl --project exzi --starttime 01.01.2019/00:00 31.03.2019/23:59 --mode stat> + =head1 AUTHOR Jan Eitzinger - L