From e95b208af90cc386a7d8d1bcab426727cf4f0121 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 21 Sep 2022 22:42:33 +0200 Subject: Update time --- includes/subsysedit.php | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'includes/subsysedit.php') diff --git a/includes/subsysedit.php b/includes/subsysedit.php index 274814e..e6aa9ca 100644 --- a/includes/subsysedit.php +++ b/includes/subsysedit.php @@ -1,34 +1,5 @@ = 0) { - return $tense = "now"; - } elseif ($difference > 0) { - $tense = "ago"; - } else { - $tense = "later"; - } - - for ($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) { - $difference /= $lengths[$j]; - } - - $difference = round($difference); - - $period = $periods[$j] . ($difference >1 ? "s" :''); - return "{$difference} {$period} {$tense}"; -} - ?>
-- cgit