rendered paste body<?phpclass CGTUtil { static function setCGTSeconds($seconds = 0){ if($seconds == 0){ $seconds = time() - CGTUtil::getCGTDifference(); } self::$time = $seconds; } static function getCGTSeconds() { if(self::$time == 0){ CGTUtil::setCGTSeconds(); } return self::$time; } static function getCGTDifference() { return 912643200 + 25200 ; } static function getCgtObject($time = -1) { if ($time == -1) { $time = CGTUtil::getCGTSeconds(); } $res = new CGTTime(); $res->secs = ($time) % 60; $res->mins = ($time / 60) % 60; $res->hours = ($time / 3600) % 24; $res->days = ($time / 3600 / 24) % 365; $res->years = floor(($time / 86400) / 365); return $res; }}