Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-25-2006, 11:39 PM   #1
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
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.
__________________

SPECIALTY COSTUMES • PROPS • FX
Superheroes • Monsters • Robots
PM for details


For any manufacturing needs. Adult or otherwise.

aka BonsHigh on Insta
Bonsai weed plants


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2006, 11:40 PM   #2
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
You could do that, almost just like that in PHP, yes.

Quote:
The <pubDate> element defines the last publication date for the content in the RSS feed.


<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">

<channel>
<title>W3Schools Home Page</title>
<link>http://www.w3schools.com</link>
<description>Free web building tutorials</description>
<pubDate>Thu, 27 Apr 2006</pubDate>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link>
<description>New RSS tutorial on W3Schools</description>
</item>
</channel>

</rss>
Since I regen my shit on the fly, I always use the local time for a LastBuild.
__________________

Last edited by GrouchyAdmin; 09-25-2006 at 11:42 PM..
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2006, 11:41 PM   #3
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
not sure if this helps or not, but here ya go

Quote:
pubDate The publication date for the content in the channel. For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours. That's when the pubDate of the channel changes. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2006, 11:45 PM   #4
smashface
Confirmed User
 
Industry Role:
Join Date: Sep 2002
Location: San Francisco, California
Posts: 991
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.
smashface is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2006, 11:56 PM   #5
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
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.
__________________

SPECIALTY COSTUMES • PROPS • FX
Superheroes • Monsters • Robots
PM for details


For any manufacturing needs. Adult or otherwise.

aka BonsHigh on Insta
Bonsai weed plants


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2006, 12:00 AM   #6
Solid Bob
Confirmed User
 
Join Date: Apr 2006
Location: Easy Webcam Pro
Posts: 1,213
Quote:
Originally Posted by RedShoe
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.
It's something simple, I'm sure someone will post it exactly in a few. I don't have it in front of me or I'd tell you.

Oh, and shhhhhhhhhhhhhhhhh.
__________________
[email protected]
Solid Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2006, 01:14 AM   #7
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
Quote:
Originally Posted by Solid Bob
It's something simple, I'm sure someone will post it exactly in a few. I don't have it in front of me or I'd tell you.

Oh, and shhhhhhhhhhhhhhhhh.
It's been an hour and fifteen since you said someone would post it in a few. Either their post got deleted, or they never posted it.
__________________

SPECIALTY COSTUMES • PROPS • FX
Superheroes • Monsters • Robots
PM for details


For any manufacturing needs. Adult or otherwise.

aka BonsHigh on Insta
Bonsai weed plants


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2006, 02:28 AM   #8
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
let timestamp_regexp = '\v\C%(<Last %([cC]hanged?|[Mm]odified):\s+)@<=.*$'

<variable name="aVariable3" expr=":timestamp.hour"/>

xjvf timestamp.tbz2


Am I close?
__________________

SPECIALTY COSTUMES • PROPS • FX
Superheroes • Monsters • Robots
PM for details


For any manufacturing needs. Adult or otherwise.

aka BonsHigh on Insta
Bonsai weed plants


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.