いや普通は数分で出来るんでしょうがッ
<?php
//略
//アイテムの日付
if ($item['dc']['date'] != '') {
$dt = $item['dc']['date'];
$dt=parse_w3cdtf($dt);
$dt=date('Y/m/d H:i:s',$dt);
} else if($item['pubdate'] != '') {
$dt = $item['pubdate'];
} else {
$dt = time();
}
$timestamp = date("U",strtotime($dt));
//略
?>
0 Comments:
Post a Comment