Hi all,
I'm trying to find a way to change strategy that joda-time uses when
DateTime.plus() method results in time within the cutover.
// Daylight spring forward in the specified time zone in 2008 occurs on
March 9th, at 1:59am, so 1:59am is followed by 3am
DateTime d1 = new DateTime(2008, 3, 8, 2, 30, 0, 0,
DateTimeZone.forID("America/New_York"));
System.out.println(d1);
System.out.println(d1.plusDays(1));
2008-03-08T02:30:00.000-05:00
2008-03-09T03:30:00.000-04:00
The output is consistent with the DateTime.plusDays() API documentation.
But I need to somehow change this behaviour so that adding one day will
result in 3:00 instead of 3:30.
Does joda-time allow for this or I'd have to come up with some
workaround?
Thanks.
--
Maxim
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest