org.apache.tools.ant.taskdefs
public class Tstamp.CustomFormat extends Object
UNKNOWN: consider refactoring out into a re-usable element.
Constructor Summary | |
---|---|
CustomFormat()
Create a format |
Method Summary | |
---|---|
void | execute(Project project, Date date, Location location)
validate parameter and execute the format. |
void | setLocale(String locale)
The locale used to create date/time string.
|
void | setOffset(int offset)
The numeric offset to the current time. |
void | setPattern(String pattern)
The date/time pattern to be used. |
void | setProperty(String propertyName)
The property to receive the date/time string in the given pattern |
void | setTimezone(String id)
The timezone to use for displaying time.
|
void | setUnit(String unit)
Set the unit type (using String). |
void | setUnit(Tstamp.Unit unit)
The unit of the offset to be applied to the current time.
|
Parameters: project project to set property in. date date to use as a starting point. location line in file (for errors)
Parameters: locale the locale to use.
See Also: java.util.Locale
Parameters: offset the offset to use.
Parameters: pattern the pattern to use.
See Also: java.text.SimpleDateFormat
Parameters: propertyName the name of the property.
Parameters: id the timezone value.
See Also: java.util.TimeZone
Deprecated: since 1.5.x. setUnit(String) is deprecated and is replaced with setUnit(Tstamp.Unit) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the unit in its own class.
Set the unit type (using String).Parameters: unit the unit to use.
Parameters: unit the unit to use.