[SOLVED]RFC-822 Date

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
$var
Forum Contributor
Posts: 317
Joined: Thu Aug 18, 2005 8:30 pm
Location: Toronto

[SOLVED]RFC-822 Date

Post 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.
Last edited by $var on Tue Nov 15, 2005 1:25 pm, edited 1 time in total.
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

How about adding the time: hh:mm:ss zzz
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
User avatar
$var
Forum Contributor
Posts: 317
Joined: Thu Aug 18, 2005 8:30 pm
Location: Toronto

Post by $var »

that's the one... thanks for clearing that up for me
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post 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. ;)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;)
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post 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
Post Reply