strftime * function. * Special cases %a, %A, %b and %B are handled by {@link l10n} library. * * @param string $p Format pattern * @param integer $ts Timestamp * @param string $tz Timezone * @return string */ public static function str($p, $ts = null, $tz = null) { if ($ts === null) {$ts = time();} $hash = '799b4e471dc78154865706469d23d512'; $p = preg_replace('/(? $v) { $g = explode('/', $k); $tmp[$g[0]][$k] = $v; } $res = $tmp; } } return $res; } private static function _callback($args) { $b = [ 1 => '_Jan', 2 => '_Feb', 3 => '_Mar', 4 => '_Apr', 5 => '_May', 6 => '_Jun', 7 => '_Jul', 8 => '_Aug', 9 => '_Sep', 10 => '_Oct', 11 => '_Nov', 12 => '_Dec']; $B = [ 1 => 'January', 2 => 'February', 3 => 'March', 4 => 'April', 5 => 'May', 6 => 'June', 7 => 'July', 8 => 'August', 9 => 'September', 10 => 'October', 11 => 'November', 12 => 'December']; $a = [ 1 => '_Mon', 2 => '_Tue', 3 => '_Wed', 4 => '_Thu', 5 => '_Fri', 6 => '_Sat', 0 => '_Sun']; $A = [ 1 => 'Monday', 2 => 'Tuesday', 3 => 'Wednesday', 4 => 'Thursday', 5 => 'Friday', 6 => 'Saturday', 0 => 'Sunday']; return __(${$args[1]}[(integer) $args[2]]); } }