ucar.nc2.iosp.grads
Class GradsTimeStruct

java.lang.Object
  extended by ucar.nc2.iosp.grads.GradsTimeStruct

public class GradsTimeStruct
extends Object

A class to hold a GrADS time structure. The full time spec is: HH:mm'Z'ddMMMyyyy (e.g. 12:04Z05Mar2011)

Author:
Don Murray CU-CIRES

Field Summary
static String[] months
          months
 
Constructor Summary
GradsTimeStruct()
          Create a new time structure
 
Method Summary
 Date getDate()
          Return this as a java Date object
 String toString()
          Get a String representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

months

public static final String[] months
months

Constructor Detail

GradsTimeStruct

public GradsTimeStruct()
Create a new time structure

Method Detail

toString

public String toString()
Get a String representation of this object

Overrides:
toString in class Object
Returns:
the GrADS time specification

getDate

public Date getDate()
Return this as a java Date object

Returns:
the corresponding Date


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.