Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 RSS 提要链接,但我需要从中获取日期。然后根据与当前时间的接近程度来决定是否做某事。
$date = Get_RSS_Date(); $currenttime = getdate(); if $data = too far away from $currenttime then don't display RSS feed.
有道理?
您可以使用 Magpie_RSS 函数,该函数将返回一个 RSS 属性数组,并且 PubDate 键包含时间戳。