in reply to question about unix timestamps (epoch)
my $completeDays = int(($_timestamp1 - $_timestamp2) / 86400); [download]
I hope this is of use.
Cheers,
JohnGG