gov.nasa.pds.tools.label
Class DateTime
java.lang.Object
gov.nasa.pds.tools.label.Scalar
gov.nasa.pds.tools.label.DateTime
- All Implemented Interfaces:
- Value
public class DateTime
- extends Scalar
- Version:
- $Revision: 4967 $
- Author:
- pramirez, jagander
Constructor Summary |
DateTime(java.util.Date date)
|
DateTime(Label label,
java.lang.String value,
int lineNumber)
|
DateTime(Label label,
java.lang.String value,
int lineNumber,
boolean lenient)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DateTime
public DateTime(Label label,
java.lang.String value,
int lineNumber)
throws LabelParserException
- Parameters:
value
- represented as a string which is in a PDS compatible formatlineNumber
- in which this value was found
- Throws:
LabelParserException
DateTime
public DateTime(Label label,
java.lang.String value,
int lineNumber,
boolean lenient)
throws LabelParserException
- Parameters:
value
- represented as a string which is in a PDS compatible formatlineNumber
- in which this value was foundlenient
- a flag to indicate how to parse the date
- Throws:
LabelParserException
DateTime
public DateTime(java.util.Date date)
getDate
public java.util.Date getDate()
normalize
public java.lang.String normalize()
isSupportedPDSType
public boolean isSupportedPDSType(Constants.DictionaryType type)
- Specified by:
isSupportedPDSType
in class Scalar
Copyright © 2005-2009 Planetary Data System. All Rights Reserved.