0

我有 RSS 提要链接,但我需要从中获取日期。然后根据与当前时间的接近程度来决定是否做某事。

$date = Get_RSS_Date(); 
$currenttime = getdate();
if $data = too far away from $currenttime then don't display RSS feed.

有道理?

4

1 回答 1

0

您可以使用 Magpie_RSS 函数,该函数将返回一个 RSS 属性数组,并且 PubDate 键包含时间戳。

于 2011-04-28T22:59:16.633 回答