[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDFJava #TVQ-727289]: CalendarDate methods and ncIdv.jar
- Subject: [netCDFJava #TVQ-727289]: CalendarDate methods and ncIdv.jar
- Date: Fri, 02 Nov 2012 14:56:23 -0600
thanks for your help getting the API useable
> John-
>
> On 11/1/12 8:05 PM, Unidata netCDF Java Support wrote:
> > 1) im not sure what controls the month name output.
>
> It's got to be the Chronology classes, but I looked around and didn't
> figure out how it ends up doing that. Maybe I'll contact Jon Blower
> about it.
>
> > 2) added:
> >
> >> public CalendarDateFormatter(String pattern, CalendarTimeZone tz,
> >> Calendar cal) {
> >> Chronology chron = Calendar.getChronology(cal);
> >> dflocal =
> >> DateTimeFormat.forPattern(pattern).withChronology(chron).withZone(
> >> tz.getJodaTimeZone());
> >> }
> >>
> >> public CalendarDate parse(String timeString) {
> >> DateTime dt = dflocal.parseDateTime(timeString);
> >> Calendar cal = Calendar.get(dt.getChronology().toString());
> >> return new CalendarDate(cal, dt);
> >> }
>
> Thanks. I'm going to check in a bunch of stuff to the nc4.3 IDV branch
> with these changes including a new ncIdv.jar.
>
> Thanks for your help with this.
>
> Don
> --
> Don Murray
> NOAA/ESRL/PSD and CIRES
> 303-497-3596
> http://www.esrl.noaa.gov/psd/people/don.murray/
>
>
Ticket Details
===================
Ticket ID: TVQ-727289
Department: Support netCDF Java
Priority: Normal
Status: Closed