drupalAPI日期函数format_date

format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL)
$timestamp 确切的日期格式 要格式化的日期变量
$type 要使用的格式(samll large medium custom)
例 format_date($test->node_created,'custom', 'm/d/Y ') 输出为日/月/年
参考http://us.php.net/manual/en/function.date.php
http://api.drupal.org/api/function/format_date/5%C2%A0
posted @ 2009-09-02 18:59  Pigg  阅读(285)  评论(0)    收藏  举报