Location: PHPKode > scripts > A71Time > time/time.php
<?php
  // A71-Time 1.4 (19.02.2011) By Alessandro Marinuzzi [Alecos]
  // Copyright © 2006-2011, Alessandro Marinuzzi [Alecos]
  // ==========================================================
  include("conf.php");
  function getlang($language, $charset) {
    global $lang;
    global $diff;
    global $char;
    if (!isset($lang) || empty($lang) || $lang == "false") {
      $found_lang[0] = strtolower(substr($language,0,3)) . '_' . strtoupper(substr($language,0,3));
      $found_lang[1] = strtolower(substr($language,0,3)) . '-' . strtoupper(substr($language,0,3));
      $found_lang[2] = strtolower(substr($language,0,2)) . '_' . strtoupper(substr($language,0,2));
      $found_lang[3] = strtolower(substr($language,0,2)) . '-' . strtoupper(substr($language,0,2));
    } else {
      $found_lang[0] = strtolower(substr($lang,0,3)) . '_' . strtoupper(substr($lang,0,3));
      $found_lang[1] = strtolower(substr($lang,0,3)) . '-' . strtoupper(substr($lang,0,3));
      $found_lang[2] = strtolower(substr($lang,0,2)) . '_' . strtoupper(substr($lang,0,2));
      $found_lang[3] = strtolower(substr($lang,0,2)) . '-' . strtoupper(substr($lang,0,2));
    }
    if (!isset($char) || empty($char) || $char == "false") {
      $char = $charset;
    }
    $lang = array($found_lang[0],$found_lang[1],$found_lang[2],$found_lang[3]);
    if (function_exists('mb_convert_encoding')) {
      setlocale(LC_ALL, $lang);
      $date = ucwords(strftime("%A, %d %B %Y")) . " " . gmdate("H:i:s", time() + $diff);
      $time = mb_convert_encoding($date, "$char");
    } else {
      setlocale(LC_ALL, $lang);
      $time = ucwords(strftime("%A, %d %B %Y")) . " " . gmdate("H:i:s", time() + $diff);
    }
    echo $time;
  }
?>
Return current item: A71Time