in reply to Re: Split date ranges/chunks based on Unix epoch time?
in thread Split date ranges/chunks based on Unix epoch time?
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 }++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Split date ranges/chunks based on Unix epoch time?
by jwkrahn (Abbot) on Apr 26, 2007 at 14:13 UTC | |
by ikegami (Patriarch) on Apr 26, 2007 at 21:02 UTC |