in reply to question about unix timestamps (epoch)

If you are only interested in complete days, that is, 3 days, 23 hours, 40 minutes is reckoned to be 3 days, not rounded up to 4, then just truncate using int.

my $completeDays = int(($_timestamp1 - $_timestamp2) / 86400);

I hope this is of use.

Cheers,

JohnGG