<DATE> : Date field

Java class : leon.info.LyDateFieldInfo

ROLE

This element describes a temporal attribute. Several date types are supported: date & time, date only, time only, hours & minutes... Information about that kind of field could be completed by a format and a default value.

ATTRIBUTES

<!ATTLIST DATE
	  id ID #REQUIRED
	  withTimeZone ( true | false) "false">
Attribute Mand. Description Default
id yes Date field identifier.  
withTimeZone no DATE.withTimeZone false

ELEMENTS

<!ELEMENT DATE 
	  (%FIELD_BEGIN;,
	   UNITS?,
	   FORMAT?,
	   %FIELD_END;)>
Element Mand. Mult. Description
FIELD_BEGIN
yes no Begin of field description.
UNITS no no Dictionary of units of this field.
FORMAT no no This is the date format. The syntax followed is the one specified by the java.text.SimpleDateFormat class (see the standard Java API for JDK 1.1, 1.2, 1.3). The default format for the English locale is "MM/dd/yyyy HH/mm/ss". The default format for the French locale is "dd/MM/yyyy HH/mm/ss". This element is not used for date fields with the type HOUR.
Warning: this format only applies to the display of the values of the current field; it does not impact the values themselves.
FIELD_END
yes no End of field description.application.

SAMPLE

<DATE id="creationDate" type='DATE_HOUR_MIN'>
	<NAME value="Creation date"/>
	<TAB value="Opening "/>
	<F_MARKS table='true' sort='true' notNull='true'/>
	<DEFAULT value="_now"/>
	<TIP value="Creation date, automatically filled in at the creation of a new object"/>
</DATE>