public class Tstamp.CustomFormat extends Object
| Constructor and Description | 
|---|
| CustomFormat()Create a format | 
| Modifier and Type | Method and Description | 
|---|---|
| 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(Tstamp.Unit unit)The unit of the offset to be applied to the current time. | 
public void execute(Project project, Date date, Location location)
project - project to set property in.date - date to use as a starting point.location - line in file (for errors)public void setLocale(String locale)
locale - the locale to use.Localepublic void setOffset(int offset)
offset - the offset to use.public void setPattern(String pattern)
pattern - the pattern to use.SimpleDateFormatpublic void setProperty(String propertyName)
propertyName - the name of the property.public void setTimezone(String id)
id - the timezone value.TimeZonepublic void setUnit(Tstamp.Unit unit)
unit - the unit to use.