[eluser]Jan_1[/eluser]
is there a possibility to calculate with a timespan value?
something like
Code:
$x = timespan($last, $now);
if ($x <= 60) { echo "less than an hour";}
I know, this does'nt work and i tried str_replace also... :red:
Code:
$diff_minutes = ($now - $last)/60;
But is there a smarter way with CI-helpers to calculate?