Diary SiteMap RecentChanges About Contact Calendar

Search:

Matching Pages:

BBC

I used to skim the world service RSS feed twice a week. That is not enough to even skim all the news. I ended up overwhelmed by the InformationOverload and dropped the feed. :/

2014-04-20

  • 10:43 UTC Anger erupts over Korea ferry rescueFamilies of passengers on a sunken South Korean ferry protest angrily over the rescue operation, scuffling with police on Jindo island.
  • 10:35 UTC Miranda 'in Generation Game talks'Comedian Miranda Hart is in "early talks" with the BBC about a revival of game show The Generation Game.
  • 10:21 UTC William and Kate at Easter serviceThe Duke and Duchess of Cambridge attend an Easter Sunday church service in Sydney and take Prince George to the zoo as part of their overseas tour.
  • 10:11 UTC Hostage reporters 'chained' in SyriaFour French journalists who spent 10 months in captivity in Syria were chained to each other and kept in basements without light, one recounts.
  • 09:36 UTC Religious leaders show Ukraine splitOrthodox Easter messages from patriarchs in Kiev and Moscow reflect Ukraine's deep divide, as a tense stand-off continues in the east.
  • 09:06 UTC Pope celebrates Easter Sunday MassTens of thousands of people pack St Peter's Square at the Vatican for an Easter Mass led by Pope Francis.
  • 08:46 UTC Hamilton eases to victory in ChinaLewis Hamilton takes a dominant victory in the Chinese GP to win three consecutive races for the first time in his career.
  • 08:30 UTC Stars read leaked Tarantino scriptSamuel L Jackson, Bruce Dern and Michael Madsen join Quentin Tarantino for a live reading of a leaked, unproduced film script.
  • 08:28 UTC Two government agencies quit CBIGovernment agencies Scottish Enterprise and Visit Scotland have quit business lobby organisation CBI after it formally backed the campaign against Scottish independence.
  • 07:03 UTC VIDEO: Christians mark Easter in tense UkraineOrthodox Christians in Ukraine are celebrating Easter although the situation in the country remains unstable.
  • 06:44 UTC VIDEO: Greek skies light up for EasterRival parishes on the Greek island of Chios have marked the evening before Orthodox Easter - by firing hundreds of rockets at each other's churches.
  • 03:24 UTC Quango chair resigns over bankruptcyA businessman appointed by the prime minister to head a multibillion-pound quango steps down after it was revealed that he was bankrupt.
  • 02:08 UTC VIDEO: Syria-held French journalists freedFour French journalists held captive in Syria for almost a year have been freed.
  • 01:25 UTC Charities chief warns of extremismIslamic extremism is the "most deadly" threat to charities in England and Wales, says William Shawcross, chairman of the Charity Commission.
  • 00:43 UTC Brazil cars torched in protestResidents of a poor community near Rio de Janeiro torch vehicles in protest at the deaths of two young men in incidents involving the police.

Comments

ehe news from 1905? Y2K bug in 2005?

PierreGaston 2005-04-26 09:05 UTC


Hehehe, I didn't even notice! In the RSS 2.0 feed I found:

    <pubDate>Tue, 26 Apr 05 07:44:29 GMT</pubDate>

I must check whether this is valid… It says: "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)." [1] But which century would that be in – do you think RFC 822 will help us? It was written August 13, 1982. This is what it says:

     date        =  1*2DIGIT month 2DIGIT        ; day month year
                                                 ;  e.g. 20 Jun 82

I think using two digits is bad engineering. Now I have to fiddle with some stupid heuristics… Here is what I currently have:

	  my $date = $i->{dc}->{date};
	  if (not $date and $i->{pubDate}) {
	    $date = $i->{pubDate};
	    my %mon = (Jan=>1, Feb=>2, Mar=>3, Apr=>4, May=>5, Jun=>6,
		       Jul=>7, Aug=>8, Sep=>9, Oct=>10, Nov=>11, Dec=>12);
	    $date =~ s/^(?:[A-Z][a-z][a-z], )?(\d\d?) ([A-Z][a-z][a-z]) (\d\d(?:\d\d)?)/ # pubDate uses RFC 822
	      sprintf('%04d-%02d-%02d', ($3 < 100 ? 1900 + $3 : $3), $mon{$2}, $1)/e;
	  }

Maybe I should use:

	      sprintf('%04d-%02d-%02d', ($3 < 60 ? 2000 + $3 : ($3 < 100 ? 1900 + $3 : $3)), $mon{$2}, $1)/e;

Yuck!

AlexSchroeder 2005-04-26 09:28 UTC

Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.

Show Google +1

EditNearLinks: PierreGaston