diff --git a/phosta.pl b/phosta.pl

index 3a0aad6111cf906046810c3e4d0afa594bedc5e0..c70f420a07d2e654c815e1fa5a1c1a336af1861e 100755

--- a/phosta.pl

+++ b/phosta.pl

@@ -54,7 +54,7 @@ exit 0;

sub validate

{

- my @group_params = ('year', 'month', 'week', '');

+ my @group_params = ('year', 'month', 'week', 'hour', '');

if ( ! ($opt_g ~~ @group_params) ) { return 0; }

my @select_params = ('maker', 'model', 'lens', 'aperture', 'exposuretime', 'iso', 'focallength', 'focallength35mm', '');

@@ -148,6 +148,11 @@ when ('year')

{

$fieldlist = "strftime('%Y', datetimeoriginal) as year,";

$grouplist = "strftime('%Y', datetimeoriginal)";

+ }

+ when ('hour')

+ {

+ $fieldlist = "strftime('%H', datetimeoriginal) as hour,";

+ $grouplist = "strftime('%H', datetimeoriginal)";

}

}

@@ -245,9 +250,9 @@ say ' -p <folder> : populate database from the files in the specified folder';

say ' Media files in the given folder and every subfolder are scanned, EXIF data extracted and pulled into the database';

say '';

say 'stats querying:';

- say ' -g : (query mode) group by time range, defaults to total (which means no grouping by time range)';

- say ' allowed values: year, month, week';

- say ' -s : (query mode) specify the information you want to select, defaults to none (just show number of images)';

+ say ' -g : group by time range, defaults to total (which means no grouping by time range)';

+ say ' allowed values: year, month, week, hour';

+ say ' -s : specify the information you want to select, defaults to none (just show number of images)';

say ' allowed values: maker, model, lens, aperture, exposuretime, iso, focallength, focallength35mm';

say ' multiple fields should be listed comma-separated';

say ' -t <range> : only take images into account which have been taken in the given timerange';