public class SyslogTimeStamp extends Format
Format.Field
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GMT_TZID
Constant
DEFAULT_GMT_TZID="GMT+00" |
Constructor and Description |
---|
SyslogTimeStamp() |
Modifier and Type | Method and Description |
---|---|
String |
format(Date date)
format
|
StringBuffer |
format(Object date,
StringBuffer appendTo,
FieldPosition fieldPos) |
String |
formatTimeZone(Date date,
TimeZone tz)
formatTimeZone
|
static SyslogTimeStamp |
getInstance()
getInstance
|
Date |
parse(String source)
parse
|
Object |
parseObject(String source,
ParsePosition pos) |
Date |
parseTimestamp(String source)
parseTimestamp
|
clone, format, formatToCharacterIterator, parseObject
public static final String DEFAULT_GMT_TZID
DEFAULT_GMT_TZID="GMT+00"
public static final SyslogTimeStamp getInstance()
getInstance
SyslogTimeStamp
object.public String format(Date date) throws IllegalArgumentException
format
date
- a Date
object.String
object.IllegalArgumentException
- if any.public String formatTimeZone(Date date, TimeZone tz) throws IllegalArgumentException
formatTimeZone
date
- a Date
object.tz
- a TimeZone
object.String
object.IllegalArgumentException
- if any.public StringBuffer format(Object date, StringBuffer appendTo, FieldPosition fieldPos) throws IllegalArgumentException
format
in class Format
IllegalArgumentException
public Date parse(String source) throws ParseException
parse
source
- a String
object.Date
object.ParseException
- if any.public Object parseObject(String source, ParsePosition pos)
parseObject
in class Format
public Date parseTimestamp(String source) throws ParseException
parseTimestamp
source
- a String
object.Date
object.ParseException
- if any.Copyright © 2021. All rights reserved.