return $format;
}
+ /**
+ * @static
+ * @abstract
+ * @return string
+ */
+ abstract static function getLanguageCode();
+
/**
* @abstract
* @static
*/
abstract function date_timestamp2local($ts);
+ /**
+ * @abstract
+ * @param int $ts
+ * @return string
+ */
+ abstract function date_timestamp2localDate($ts);
+
/**
* @abstract
* @return int
class wdcal_local_us extends wdcal_local {
+ /**
+ * @static
+ * @return string
+ */
+ static function getLanguageCode() {
+ return "en";
+ }
+
/**
* @return string
*/
return date("m/d/Y H:i", $ts);
}
+ /**
+ * @param int $ts
+ * @return string
+ */
+ function date_timestamp2localDate($ts) {
+ return date("l, F jS Y", $ts);
+ }
+
/**
* @return int
*/
class wdcal_local_de extends wdcal_local {
+ /**
+ * @static
+ * @return string
+ */
+ static function getLanguageCode() {
+ return "de";
+ }
+
/**
* @return string
*/
return date("d.m.Y H:i", $ts);
}
+ /**
+ * @param int $ts
+ * @return string
+ */
+ function date_timestamp2localDate($ts) {
+ return date("l, j. F Y", $ts);
+ }
+
/**
* @return int
*/