Package deltix.qsrv.util.json
Class DateFormatter
- java.lang.Object
-
- deltix.qsrv.util.json.DateFormatter
-
public class DateFormatter extends java.lang.Object
Formats date in UTC, not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description DateFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
fromDateString(java.lang.String value)
long
fromNanosDateString(java.lang.String value)
java.lang.String
toDateString(long milliseconds)
java.lang.String
toDateString(long milliseconds, int nanosComponent)
void
toDateString(long milliseconds, int nanosComponent, java.lang.StringBuilder sb)
void
toDateString(long milliseconds, java.lang.StringBuilder sb)
java.lang.String
toNanosDateString(long nanoTime)
void
toNanosDateString(long nanoTime, java.lang.StringBuilder sb)
-
-
-
Method Detail
-
toDateString
public void toDateString(long milliseconds, java.lang.StringBuilder sb)
-
toDateString
public java.lang.String toDateString(long milliseconds)
-
toDateString
public void toDateString(long milliseconds, int nanosComponent, java.lang.StringBuilder sb)
-
toDateString
public java.lang.String toDateString(long milliseconds, int nanosComponent)
-
toNanosDateString
public void toNanosDateString(long nanoTime, java.lang.StringBuilder sb)
-
toNanosDateString
public java.lang.String toNanosDateString(long nanoTime)
-
fromDateString
public long fromDateString(java.lang.String value) throws java.text.ParseException
- Throws:
java.text.ParseException
-
fromNanosDateString
public long fromNanosDateString(java.lang.String value) throws java.text.ParseException
- Throws:
java.text.ParseException
-
-