function format_date($f, $t = 0, $h = FALSE) { global $ctr; if (!is_numeric($t)) { $t = 0; } if (!class_exists('go2hi')) { $ctr->load('file', 'lib/go2hi.php'); } $i = new go2hi(); return $i->date($f, $h === FALSE ? GO2HI_GREG : GO2HI_HIJRI, $t, 1); }
private static function reset_vars() { self::$dateH = self::$monthH = self::$yearH = null; self::$dateM = self::$monthM = self::$yearM = self::$hourM = self::$minuteM = self::$secondM = null; }