public class Tstamp.CustomFormat
extends java.lang.Object
Constructor and Description |
---|
CustomFormat()
Create a format
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Project project,
java.util.Date date,
Location location)
validate parameter and execute the format.
|
void |
setLocale(java.lang.String locale)
The locale used to create date/time string.
|
void |
setOffset(int offset)
The numeric offset to the current time.
|
void |
setPattern(java.lang.String pattern)
The date/time pattern to be used.
|
void |
setProperty(java.lang.String propertyName)
The property to receive the date/time string in the given pattern
|
void |
setTimezone(java.lang.String id)
The timezone to use for displaying time.
|
void |
setUnit(java.lang.String unit)
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.
|
void |
setUnit(Tstamp.Unit unit)
The unit of the offset to be applied to the current time.
|
public void setProperty(java.lang.String propertyName)
propertyName
- the name of the property.public void setPattern(java.lang.String pattern)
pattern
- the pattern to use.SimpleDateFormat
public void setLocale(java.lang.String locale)
locale
- the locale to use.Locale
public void setTimezone(java.lang.String id)
id
- the timezone value.TimeZone
public void setOffset(int offset)
offset
- the offset to use.public void setUnit(java.lang.String unit)
unit
- the unit to use.public void setUnit(Tstamp.Unit unit)
unit
- the unit to use.