标签:pubdate

  • 将RSS pubDate转换为时间戳 - php

    时间:2020-7-25

    如何在PHP中将日期字符串Mon, 24 May 2010 17:54:00 GMT从RSS feed转换为时间戳? 参考方案 您可以使用内置功能strtotime()。它以日期字符串作为第一个参数,并返回Unix时间戳。 http://php.net/manual/en/function.strtotime.php