From 09bd0164ebc020a54b944b7326dcba496fb5d82c Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 26 Aug 2022 22:29:23 +0200 Subject: idk when was the last commit so I'm making a new one - Violet Dawn --- includes/system.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'includes/system.php') diff --git a/includes/system.php b/includes/system.php index 059eed7..46adeb1 100644 --- a/includes/system.php +++ b/includes/system.php @@ -1,47 +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