格式化时间
function phptemplate_comment_submitted($comment) {
return t('!datetime — !username', array (
'!username' => theme('username', $comment),
'!datetime' => format_date($comment->timestamp)
));
}
/**
* Returns the themed submitted-by string for the node.
*/
function phptemplate_node_submitted($node) {
return t('!datetime — !username', array (
'!username' => theme('username', $node),
'!datetime' => format_date($node->created),
));
}