congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DMSPHeader$DateFormatHandler.getDateFromDateTimeString
Code IndexAdd Tabnine to your IDE (free)

How to use
getDateFromDateTimeString
method
in
ucar.nc2.iosp.dmsp.DMSPHeader$DateFormatHandler

Best Java code snippets using ucar.nc2.iosp.dmsp.DMSPHeader$DateFormatHandler.getDateFromDateTimeString (Showing top 10 results out of 315)

origin: edu.ucar/cdm

/**
 * 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 ) );
}
origin: Unidata/thredds

/**
 * 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 ) );
}
origin: edu.ucar/netcdf

/**
 * 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 ) );
}
origin: edu.ucar/netcdf

             + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC);
            + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
origin: edu.ucar/cdm

             + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC);
            + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
origin: Unidata/thredds

             + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC);
            + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
origin: edu.ucar/cdm

this.startDateString = this.header.getStartDateAtt().getStringValue();
try {
 this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString);
} catch (ParseException e) {
 throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
origin: edu.ucar/netcdf

this.startDateString = this.header.getStartDateAtt().getStringValue();
try {
 this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString);
} catch (ParseException e) {
 throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
origin: Unidata/thredds

this.startDateString = this.header.getStartDateAtt().getStringValue();
try {
 this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString);
} catch (ParseException e) {
 throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
origin: Unidata/thredds

 testDate = DMSPHeader.DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString(targetDate1AltDateTimeString);
} catch (ParseException e) {
 assertTrue("Unexpected ParseException while parsing date/time string <" + targetDate1AltDateTimeString + ">: " + e.getMessage(),
ucar.nc2.iosp.dmspDMSPHeader$DateFormatHandlergetDateFromDateTimeString

Javadoc

Return a java.util.Date given a date string using the date/time format string.

Popular methods of DMSPHeader$DateFormatHandler

  • getDateTimeFormatString
  • getDateTimeStringFromDate
    Return the date/time string that represents the given a java.util.Date in the format of this DataFor

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • String (java.lang)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now