Page 1 of 1

[SOLVED]RFC-822 Date

Posted: Tue Nov 15, 2005 12:02 pm
by $var
Alo,

What is the proper syntax for RFC-822 date function.
I am making my first manual RSS feed, and the RSS validator is saying the date is wrong in format...

Google says:
date = 1*2DIGIT month 2*4DIGIT

But when i put, say:

<lastBuildDate>15 Nov 2005</lastBuildDate>

It parses an error.
Could someone help me out with what today would look like.

Posted: Tue Nov 15, 2005 12:40 pm
by Buddha443556
How about adding the time: hh:mm:ss zzz

Posted: Tue Nov 15, 2005 1:07 pm
by twigletmac
Here: http://php.net/date it seems to indicate that an RFC 822 date is something like - Tue, 10 Apr 2005 18:34:07 +0300

Mac

Posted: Tue Nov 15, 2005 1:23 pm
by $var
that's the one... thanks for clearing that up for me

Posted: Tue Nov 15, 2005 2:32 pm
by timvw
The definitive source: ftp://ftp.rfc-editor.org/in-notes/rfc822.txt (See section 5. Date and Time Specification).

Btw, that RFC is obsoleted by RFC2822 and updated by RFC1123, RFC1138, RFC1148, RFC1327, RFC2156.

Posted: Tue Nov 15, 2005 2:40 pm
by foobar
timvw wrote: Btw, that RFC is obsoleted by RFC2822 and updated by RFC1123, RFC1138, RFC1148, RFC1327, RFC2156.
I hope that you don't know all of that by heart. If you do, my sympathy, you need a life. ;)

Posted: Tue Nov 15, 2005 2:46 pm
by timvw
Simply go to http://www.rfc-editor.org/cgi-bin/rfcsearch.pl, type in the number and you get an overview ;)

If you are a programmer i find it as important to know where/how you can find something than knowing stuff by heart ;)

Posted: Tue Nov 15, 2005 3:11 pm
by foobar
timvw wrote:Simply go to http://www.rfc-editor.org/cgi-bin/rfcsearch.pl, type in the number and you get an overview ;)

If you are a programmer i find it as important to know where/how you can find something than knowing stuff by heart ;)
Thanks for reassuring me that when I go pro, I'll at least have a shred of a life left. :P