[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #TVQ-727289]: CalendarDate methods and ncIdv.jar

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDFJava #TVQ-727289]: CalendarDate methods and ncIdv.jar
  • Date: Thu, 01 Nov 2012 20:05:51 -0600

1) im not sure what controls the month name output. 

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);
> }


Ticket Details
===================
Ticket ID: TVQ-727289
Department: Support netCDF Java
Priority: Normal
Status: Open