Esempio n. 1
0
 public static function displayDate($gwf_date, $default_return = 'ERROR')
 {
     return self::displayDateISO($gwf_date, GWF_LangTrans::getBrowserISO(), $default_return);
 }
Esempio n. 2
0
 /**
  * Return a human readable duration.
  * Example: 666 returns 11 minutes 6 seconds.
  * @param $duration in seconds.
  * @param $nUnits how many units to display max.
  * @return string
  */
 public static function humanDuration($duration, $nUnits = 2)
 {
     return self::humanDurationISO(GWF_LangTrans::getBrowserISO(), $duration, $nUnits);
 }