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: 8410 $
- Author:
- pramirez, jagander
DateTime
public DateTime(Label label,
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,
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(Date date)
getDate
public Date getDate()
normalize
public String normalize()
isSupportedPDSType
public boolean isSupportedPDSType(Constants.DictionaryType type)
- Specified by:
isSupportedPDSType
in class Scalar
Copyright © 2005-2011 Planetary Data System. All Rights Reserved.