public function transform($args, Mustache_LambdaHelper $helper) {
        // Split the text into an array of variables.
        list($timestamp, $format) = explode(',', $args, 2);
        $timestamp = trim($timestamp);
        $format = trim($format);

        $timestamp = $helper->render($timestamp);
        $format = $helper->render($format);

        return userdate($timestamp, $format);
    }
public function transform($args, Mustache_LambdaHelper $helper) {
        // Split the text into an array of variables.
        list($timestamp, $format) = explode(',', $args, 2);
        $timestamp = trim($timestamp);
        $format = trim($format);

        $timestamp = $helper->render($timestamp);
        $format = $helper->render($format);

        return userdate($timestamp, $format);
    }
public function transform ( $ args , Mustache_LambdaHelper $ helper ) { // Split the text into an array of variables. list ( $ timestamp , $ format ) = explode ( ',' , $ args , 2 ) ; $ timestamp = trim ( $ timestamp ) ; $ format = trim ( $ format ) ; $ timestamp = $ helper -> render ( $ timestamp ) ; $ format = $ helper -> render ( $ format ) ; return userdate ( $ timestamp , $ format ) ; }
Read a timestamp and format from the string.

{{#userdate}}1487655635, %Y %m %d{{/userdate}}

There is a list of formats in lang/en/langconfig.php that can be used as the date format.

Both args are required. The timestamp must come first.

@param string $args The text to parse for arguments.
@param Mustache_LambdaHelper $helper Used to render nested mustache variables.
@return string
Read a timestamp and format from the string .