Allow me to put some ideas here...
I can store a LocalTime in my DB (eg 18:00) alongside with a String for the
TimeZone "Europe/Brussels"
Is there a way to create a LocalTime using both?
eg
LocalTime ltFromDB (contains 18:00 UTC)
LocalTime lt = new LocalTime(ltFromDB,
DateTimeZone.forID("Europe/Brussels"));
When I print lt, I get:18:00 UTC as if it had ignored the timezone in the
constructor.
Alternatively, say that I am in London (which I am):
LocalTime now = new LocalTime(), eg 17:55
Say that was coming from the DB
LocalTime asInBxl = new LocalTime(now,
DateTimeZone.forID("Europe/Brussels"));
I would expect asInBxl to show me 18:55 but it is still 17:55...
I must have misunderstood something obviously, but it seems that the
constructor with a TZ does nothing? Please correct me...
If I do:
DateTime dateTimeTodayBxl =
now.toDateTimeToday(DateTimeZone.forID("Europe/Brussels"));
I then get 2008-07-04T17:55:00+02:00 which is what I would expect BUT there
is a date that I do not need...
Many thanks
Benoit.
jodastephen wrote:
>
> This is a feature that is in the works for JSR-310. I don't have much
> time for Joda-Time these days, so haven't got any immediate intentions
> of adding it there.
> Stephen
>
--
View this message in context:
http://n2.nabble.com/Re%3A-nothing-archived...-tp220006p221271.html
Sent from the Joda-Interest mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest