Hi there,
I live in Ireland. It is currently IST - Irish Summer Time.
On the 28th October 2007 at 02:00 AM the clocks will go backwards one hour
to 01:00 AM GMT.
So, in effect, there are two 01:01 AM's, two 01:02 AM's etc. One in IST and
one in GMT.
My question is this:
If I execute the code:
DateTime now = new DateTime(2007, 10, 28, 01, 20, 0, 0,
DateTimeZone.forID("Europe/Dublin") );
It defaults to 01:20 GMT. So, naturally if I execute:
now = now.plusHours(1);
The time is now 02:20 GMT.
How do I tell DateTime to assume IST? I tried with the time zone ID "IST"
but it is not recognised...I know these have been deprecated.
In other words how do I do something like:
DateTime now = new DateTime(2007, 10, 28, 01, 20, 0, 0,
DateTimeZone.forID("IST") );
To get: 01:20 IST
now = now.plusHours(1);
I get 01:20 GMT?
thanks,
- Paul.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest