FileDocCategorySizeDatePackage
GOMDateConstruct.javaAPI DocApache Lucene 2.1.02686Wed Feb 14 10:46:00 GMT 2007org.apache.lucene.gdata.gom

GOMDateConstruct

public abstract interface GOMDateConstruct implements GOMElement

GOMDateConstruct is a base interface for several concrete DateConstruct implementations like {@link org.apache.lucene.gdata.gom.GOMUpdated} or {@link org.apache.lucene.gdata.gom.GOMPublished}

A Date construct is an element whose content MUST conform to the "date-time" production in [RFC3339]. In addition, an uppercase "T" character MUST be used to separate date and time, and an uppercase "Z" character MUST be present in the absence of a numeric time zone offset.

atomDateConstruct = atomCommonAttributes, xsd:dateTime
Such date values happen to be compatible with the following specifications: [ISO.8601.1988], [W3C.NOTE-datetime-19980827], and [W3C.REC-xmlschema-2-20041028].

Example Date constructs:

<updated>2003-12-13T18:30:02Z</updated>

<updated>2003-12-13T18:30:02.25Z</updated>
<updated>2003-12-13T18:30:02+01:00</updated>
<updated>2003-12-13T18:30:02.25+01:00</updated>
Date values SHOULD be as accurate as possible. For example, it would be generally inappropriate for a publishing system to apply the same timestamp to several entries that were published during the course of a single day.

author
Simon Willnauer
see
org.apache.lucene.gdata.gom.GOMUpdated
see
org.apache.lucene.gdata.gom.GOMPublished

Fields Summary
Constructors Summary
Methods Summary
public abstract java.util.DategetDate()

return
- the date object, if no date has been set this method will return a new Date(0) date object

public abstract voidsetDate(java.util.Date date)

param
date - the date to set