The division operator '/' doesn't do any implicit integer truncation - yes, I know C does... :)my %date_count; foreach my $time ( @times ) { $date_count{ int( $time / 3600 ) * 3600 }++; }
In reply to Re^2: Split date ranges/chunks based on Unix epoch time?
by Krambambuli
in thread Split date ranges/chunks based on Unix epoch time?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |