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. :/

2016-05-04

  • 04:05 UTC Ted Cruz pulls out of Republican raceTed Cruz gives up his campaign for the US Republican presidential nomination, clearing the way for Donald Trump to claim his party's crown.
  • 04:02 UTC Chanel stages fashion show in CubaFrench fashion house Chanel holds a show in the Cuban capital Havana - the first such event since the communist revolution on the island in 1959.
  • 03:50 UTC Abu Sayyaf hostages make video pleaThree hostages held by Islamist militants in the Philippines appear in a video pleading for their governments to meet the captors' demands.
  • 02:21 UTC VIDEO: Olympic flame arrives in BrazilThe Olympic flame has arrived in Brazil for the start of a torch relay that will culminate with the opening of the Olympic Games in Rio in August.
  • 02:16 UTC Canada wildfire forces mass evacuationA huge wildfire forces the evacuation of about 60,000 people from Fort McMurray - the entire population of the city in the Canadian province of Alberta.
  • 01:54 UTC Asylum boat reaches Australia territoryA boat of asylum seekers has reached the Cocos Islands, a remote Australian territory in the Indian Ocean.
  • 01:53 UTC EU Commission 'to support' Turkey dealThe European Commission is set to recommend granting visa-free travel for Turkish citizens, but the plan faces opposition from some EU lawmakers.
  • 00:55 UTC US Navy Seal dies in IS attack in IraqA US Navy Seal advising Kurdish Peshmerga forces in northern Iraq is killed in an attack by Islamic State militants, US officials say.
  • 00:30 UTC Unicef: 75m children deprived of schoolSome 75 million school-age children in crisis areas around the world are in desperate need of educational support, according to a new report by Unicef.
  • 00:15 UTC Lula had 'key role' in Brazil scandalBrazil's Attorney General Rodrigo Janot asks the Supreme Court to authorise a corruption investigation against former President Luiz Inacio Lula da Silva.

2016-05-03

Show Google +1

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};) ; 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},

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.