开发者

What is the RFC 2822 date format in PHP (without using date('r'))?

开发者 https://www.devze.com 2023-04-07 09:15 出处:网络
Is date(\'D, j M Y H:i:s O\') equivalent to date(\'r\') (RFC 2822 date) in PHP? I\'m asking because \'r\' seems to be non-working with the format parameter of date_parse_from_for开发者_JS百科mat.You c

Is date('D, j M Y H:i:s O') equivalent to date('r') (RFC 2822 date) in PHP? I'm asking because 'r' seems to be non-working with the format parameter of date_parse_from_for开发者_JS百科mat.


You can use date(DateTime::RFC2822); if you want dates in the RFC 2822 format.

0

精彩评论

暂无评论...
验证码 换一张
取 消