• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can someone please help me parse this date  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The date is:



Thank you in advance. I think the 'GMT-0500' is what is giving me the problem.
 
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right about that. Try the following to see exactly where the parsing fails:
You'll see that it fails at the 00. If you add a : before it it will succeed, and print "Thu Dec 01 06:00:00 CET 2011". In other words, 6 AM CET (GMT+1) equals 0 AM EST (GMT-5).
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@OP: Please BeForthrightWhenCrossPostingToOtherSites. Thanks.
 
Rob Hyx
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:You're right about that. Try the following to see exactly where the parsing fails:
You'll see that it fails at the 00. If you add a : before it it will succeed, and print "Thu Dec 01 06:00:00 CET 2011". In other words, 6 AM CET (GMT+1) equals 0 AM EST (GMT-5).


Ah, thanks. That's what I needed. I took a look at the API and it had that ":" in all of the examples for GMT.

Sorry, I did post this on the Oracle forums. I'll remember that in the future.

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!