rome.properties

View: New views
4 Messages — Rating Filter:   Alert me  

rome.properties

by Carlos S. Zamudio-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.  Is the rome.properties file still a method for adding alternative
Date formats for the ROME date parser? I can't seem to get it to work
(e.g., some Yahoo RSS feeds use the format Etc/GMT for specifying the
time zone) and the references I've found the various ROME user
discussion threads are a few years old now.  If it is still an active
method, I'll keep trying to debug my code.   Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: rome.properties

by Alejandro Abdelnur-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Carlos,

Yes it is, make sure you set a mask that valid for the SimpleDateFormat class.

A

On Thu, Apr 10, 2008 at 8:39 PM, Carlos S. Zamudio <cszamudio@...> wrote:

> Hi.  Is the rome.properties file still a method for adding alternative Date
> formats for the ROME date parser? I can't seem to get it to work (e.g., some
> Yahoo RSS feeds use the format Etc/GMT for specifying the time zone) and the
> references I've found the various ROME user discussion threads are a few
> years old now.  If it is still an active method, I'll keep trying to debug
> my code.   Thanks.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@...
>  For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: rome.properties

by WILLIAMer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi all,
I write some code and using it getting an rss feed from an url.
Data from rss feed is good and right except <pubDate>.
The <pubDate> always return null.
I find the problem is the date format is invalid.

So i try
1.create a file "rome.properties".
2.add 1 line datetime.extra.masks=EEE , dd MMM yyyy HH:mm:ss z
   the date format is just for the rss feed(like this<pubDate>Mon , 26 May 2008 00:00:00 GMT</pubDate>)
3.put this file in classpath
After this 3 steps done, but it not work.
Is there anything i lost or what step is wrong?

Carlos S. Zamudio-3 wrote:
Hi.  Is the rome.properties file still a method for adding alternative
Date formats for the ROME date parser? I can't seem to get it to work
(e.g., some Yahoo RSS feeds use the format Etc/GMT for specifying the
time zone) and the references I've found the various ROME user
discussion threads are a few years old now.  If it is still an active
method, I'll keep trying to debug my code.   Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@rome.dev.java.net
For additional commands, e-mail: users-help@rome.dev.java.net

Re: rome.properties

by Alejandro Abdelnur-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've just tested the mask and the date of your sample and it works.

The rome.properties should be in a directory that is in the classpath, in that directory, not in a subdirectory.

A

On Tue, May 27, 2008 at 9:26 AM, WILLIAMer <william.tzeng@...> wrote:

hi all,
I write some code and using it getting an rss feed from an url.
Data from rss feed is good and right except <pubDate>.
The <pubDate> always return null.
I find the problem is the date format is invalid.

So i try
1.create a file "rome.properties".
2.add 1 line datetime.extra.masks=EEE , dd MMM yyyy HH:mm:ss z
  the date format is just for the rss feed(like this<pubDate>Mon , 26 May
2008 00:00:00 GMT</pubDate>)
3.put this file in classpath
After this 3 steps done, but it not work.
Is there anything i lost or what step is wrong?


Carlos S. Zamudio-3 wrote:
>
> Hi.  Is the rome.properties file still a method for adding alternative
> Date formats for the ROME date parser? I can't seem to get it to work
> (e.g., some Yahoo RSS feeds use the format Etc/GMT for specifying the
> time zone) and the references I've found the various ROME user
> discussion threads are a few years old now.  If it is still an active
> method, I'll keep trying to debug my code.   Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>

--
View this message in context: http://www.nabble.com/rome.properties-tp16613269p17482613.html
Sent from the Rome - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


LightInTheBox - Buy quality products at wholesale price