|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
org.epics.pvmanager.util.TimeStampFormat
TimestampFormat
@Deprecated public class TimeStampFormat
Implements a formatting class to format timestamps. The format String
is exactly the one supported by the SimpleDateFormat, except
that it supports the nanosecond field identified by N.
For example, the pattern "yyyy-MM-dd'T'HH:mm:ss.NNNNNNNNNZ" formats to 2001-07-04T12:08:56.012345678-0700
Parsing is not currently supported.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.Format |
|---|
java.text.Format.Field |
| Constructor Summary | |
|---|---|
TimeStampFormat()
Deprecated. Creates a new TimeStampFormat using the current Locale. |
|
TimeStampFormat(java.lang.String pattern)
Deprecated. Creates a new TimeStampFormat using the given pattern and the symbols from the current Locale. |
|
TimeStampFormat(java.lang.String pattern,
java.text.DateFormatSymbols symbols)
Deprecated. Creates a new TimeStampFormat using the given pattern and symbols. |
|
TimeStampFormat(java.lang.String pattern,
java.util.Locale locale)
Deprecated. Creates a new TimeStampFormat using the given pattern and the symbols from the current Locale. |
|
| Method Summary | |
|---|---|
java.lang.StringBuffer |
format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Deprecated. |
java.lang.String |
format(TimeStamp timeStamp)
Deprecated. Formats the given TimeStamp. |
java.util.TimeZone |
getTimeZone()
Deprecated. Returns the time zone used to format the timestamp. |
java.lang.Object |
parseObject(java.lang.String source,
java.text.ParsePosition pos)
Deprecated. NB: Not supported |
void |
setTimeZome(java.util.TimeZone zone)
Deprecated. Changes the time zone used to format the timestamp. |
| Methods inherited from class java.text.Format |
|---|
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeStampFormat()
public TimeStampFormat(java.lang.String pattern)
pattern - the pattern describing the date and time format
public TimeStampFormat(java.lang.String pattern,
java.text.DateFormatSymbols symbols)
pattern - the pattern describing the date and time formatsymbols - symbols to be used in formatting
public TimeStampFormat(java.lang.String pattern,
java.util.Locale locale)
pattern - the pattern describing the date and time formatlocale - the Locale to be used| Method Detail |
|---|
public void setTimeZome(java.util.TimeZone zone)
zone - a new time zonepublic java.util.TimeZone getTimeZone()
public java.lang.StringBuffer format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.Formatpublic java.lang.String format(TimeStamp timeStamp)
timeStamp - a TimeStamp
public java.lang.Object parseObject(java.lang.String source,
java.text.ParsePosition pos)
parseObject in class java.text.Format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||