retVal.append( DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate( this.processingDate ) ); retVal.append( "\n" );
retVal.append( DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate( this.processingDate ) ); retVal.append( "\n" );
retVal.append( DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate( this.processingDate ) ); retVal.append( "\n" );
this.startDateAtt = new Attribute( this.startDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.startDate)); DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.endDate));
this.startDateAtt = new Attribute( this.startDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.startDate)); DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.endDate));
this.startDateAtt = new Attribute( this.startDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.startDate)); DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.endDate));
testDateTimeString = DMSPHeader.DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate(targetDate1); assertTrue("Date/time string <" + testDateTimeString + "> not as expected <" + targetDate1AltDateTimeString + ">.", testDateTimeString.equals(targetDate1AltDateTimeString));
/** * Parse the processing/history information from the header. * * @throws IOException if any problems reading the file (or validating the file). */ private void handleProcessingInformation() throws IOException { suborbitHistoryAtt = new Attribute(this.suborbitHistoryAttName, headerInfo.get(HeaderInfoTitle.SUBORBIT_HISTORY.toString())); processingSystemAtt = new Attribute(this.processingSystemAttName, headerInfo.get(HeaderInfoTitle.PROCESSING_SYSTEM.toString())); String processingDateString = headerInfo.get(HeaderInfoTitle.PROCESSING_DATE.toString()); try { processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString ); } catch ( ParseException e ) { throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() ); } processingDateAtt = new Attribute( this.processingDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) ); }
/** * Parse the processing/history information from the header. * * @throws IOException if any problems reading the file (or validating the file). */ private void handleProcessingInformation() throws IOException { suborbitHistoryAtt = new Attribute( this.suborbitHistoryAttName, (String) headerInfo.get( HeaderInfoTitle.SUBORBIT_HISTORY.toString() ) ); processingSystemAtt = new Attribute( this.processingSystemAttName, (String) headerInfo.get( HeaderInfoTitle.PROCESSING_SYSTEM.toString() ) ); String processingDateString = (String) headerInfo.get( HeaderInfoTitle.PROCESSING_DATE.toString() ); try { processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString ); } catch ( ParseException e ) { throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() ); } processingDateAtt = new Attribute( this.processingDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) ); }
/** * Parse the processing/history information from the header. * * @throws IOException if any problems reading the file (or validating the file). */ private void handleProcessingInformation() throws IOException { suborbitHistoryAtt = new Attribute( this.suborbitHistoryAttName, (String) headerInfo.get( HeaderInfoTitle.SUBORBIT_HISTORY.toString() ) ); processingSystemAtt = new Attribute( this.processingSystemAttName, (String) headerInfo.get( HeaderInfoTitle.PROCESSING_SYSTEM.toString() ) ); String processingDateString = (String) headerInfo.get( HeaderInfoTitle.PROCESSING_DATE.toString() ); try { processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString ); } catch ( ParseException e ) { throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() ); } processingDateAtt = new Attribute( this.processingDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) ); }