![]() |
RSS question regarding <pubDate>
I'm not sure I'm understanding the <pubDate> tags in RSS. Is there an actual code that you insert between the tags to get the date? Do you just leave it blank and the date is inserted there when the document is published?
Is it like in javascript where you create a code like <? print date("F d, Y H:i:s", time())?> and then it posts the time when the doc is published? Kinda confused. Does anyone know? Thanks. |
You could do that, almost just like that in PHP, yes.
Quote:
|
not sure if this helps or not, but here ya go
Quote:
|
Are you trying to create software that will write an RSS feed or just manually creating an RSS feed? You can manually edit this date or have your feed creation software add it.
I think that feed readers use it to download new content and or updated items. |
What I'm looking for is the actual code that gets inserted between the pubdate tags that will generate an actual date upon publication.
What I have is an evem more powerful templating system (one that is far too complicated for to get into here) It's taken me years to master and I want to be able to use this system to build RSS feeds. Which it can do, but I don't think it can insert a date, so I'll need to actually build the a timestamp code to go on the template so that every time it runs, the new content will get added into it and a date will get stamped into the proper area. |
Quote:
Oh, and shhhhhhhhhhhhhhhhh. |
Quote:
|
let timestamp_regexp = '\v\C%(<Last %([cC]hanged?|[Mm]odified):\s+)@<=.*$'
<variable name="aVariable3" expr=":timestamp.hour"/> xjvf timestamp.tbz2 Am I close? |
All times are GMT -7. The time now is 12:47 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123