Class SystemTimestampFormat
- java.lang.Object
-
- hudson.plugins.timestamper.format.TimestampFormat
-
- hudson.plugins.timestamper.format.SystemTimestampFormat
-
public final class SystemTimestampFormat extends TimestampFormat
Converts a time-stamp to the system clock time format.- Author:
- Steven G. Brown
-
-
Constructor Summary
Constructors Constructor Description SystemTimestampFormat(String systemTimeFormat, Optional<String> timeZoneId, Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(Timestamp timestamp)
Format the given time-stamp as a string.boolean
equals(Object obj)
String
getPlainTextUrl()
Get the URL for displaying the plain text console and time-stamps in this format.int
hashCode()
String
toString()
void
validate()
Validates that the given timestamp format can be applied safely.-
Methods inherited from class hudson.plugins.timestamper.format.TimestampFormat
markup
-
-
-
-
Method Detail
-
validate
public void validate() throws FormatParseException, InvalidHtmlException
Description copied from class:TimestampFormat
Validates that the given timestamp format can be applied safely.- Specified by:
validate
in classTimestampFormat
- Throws:
FormatParseException
- If the timestamp format cannot be parsedInvalidHtmlException
- If the timestamp format contains invalid HTML
-
getPlainTextUrl
public String getPlainTextUrl()
Get the URL for displaying the plain text console and time-stamps in this format.- Specified by:
getPlainTextUrl
in classTimestampFormat
- Returns:
- the plain text URL
-
-