(Completed) RSS pubDate Increment

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
techkid
Forum Commoner
Posts: 54
Joined: Sat Sep 05, 2009 11:18 pm
Location: Maldives

(Completed) RSS pubDate Increment

Post by techkid »

Hello,

I am developing an App by using YQL to retrieve the information and displaying them.

What I would like to do is add 5 mores hours to pubDate after retrieving.

It comes in this form (time in GMT):
Sat, 17 Dec 2011 08:26:21 +0000

Is there any possible way to add 5 more hours to it?
Last edited by techkid on Sat Dec 17, 2011 10:33 am, edited 1 time in total.
phpHappy
Forum Commoner
Posts: 33
Joined: Wed Oct 26, 2011 1:58 pm

Re: RSS pubDate Increment

Post by phpHappy »

<pubDate>Sat, 17 Dec 2011 08:26:21 +0500</pubDate>

something like that - lookup <pubDate>
User avatar
techkid
Forum Commoner
Posts: 54
Joined: Sat Sep 05, 2009 11:18 pm
Location: Maldives

Re: RSS pubDate Increment

Post by techkid »

I have done it now, by formatting it from strftime() and date_default_timezone_set
Post Reply