git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@219
c11ca15a-4712-0410-83d8-
924469b57eb5
my $time = $factinfo{'created_time'};
if ($time) {
if (time() - $time > 60*60*24*7) {
my $time = $factinfo{'created_time'};
if ($time) {
if (time() - $time > 60*60*24*7) {
- $string .= " at \037". scalar(localtime $time). "\037";
+ my $days = int( (time() - $time)*60*60*24 );
+ $string .= " at \037". scalar(localtime $time). "\037" .
+ " ($days days) ";
} else {
$string .= " ".&Time2String(time() - $time)." ago";
}
} else {
$string .= " ".&Time2String(time() - $time)." ago";
}