Can someone explain how to create a DateTimeZone using DateTimeZoneBuilder instead one of the prebuilt zones?
I need to convert from local date/times with time zone information into UTC and back again. This is so I can process ics (iCal) entries where date/times are expressed like: DTSTART;TZID="(GMT) Greenwich Mean Time - Dublin / Edinburgh / Lisbon / London":20100117T130000 I can see that DateTimeZone supports conversion methods to and from UTC, however I don't understand how to create the DateTimeZone object which is also defined in the same ics file as follows: BEGIN:VTIMEZONE TZID:(GMT) Greenwich Mean Time - Dublin / Edinburgh / Lisbon / London BEGIN:STANDARD DTSTART:16010101T020000 TZOFFSETTO:-0000 TZOFFSETFROM:+0100 RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=10;BYDAY=-1SU END:STANDARD BEGIN:DAYLIGHT DTSTART:16010101T010000 TZOFFSETTO:+0100 TZOFFSETFROM:-0000 RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=-1SU END:DAYLIGHT END:VTIMEZONE I looked at the example given in the DateTimeZoneBuilder javadoc but couldn't understand how to create a DateTimeZone with the above VTIMEZONE information. I can see that the tzdata2010b TZ database looks similar to the RRULE above, so I'm hoping this isn't going to be too hard. Can someone help explain how to use the DateTimeZoneBuilder class to process the timezone rules above to build a custom DateTimeZone object? Thanks John ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest