|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.develop.trace.TraceDateToString
Convert java.util.Dates into suitable Strings for the Trace system.
Note that times are printed in local time rather than GMT. People get confused when looking at log files that are not in the local time - they know something bad happened at 4 o'clock, but there's nothing in the log for that time.
For synchronizing trace logs from different time zones, this is inadequate. We'll deal with that when we come to it.
Note that the construction of strings in this class is one of the bottlenecks in this code.
Changed to use ISO8601 according to ETimeFormat
.
Constructor Summary | |
(package private) |
TraceDateToString()
|
Method Summary | |
(package private) static String |
dateTimeString(Date date)
XXX should fix the tracing package to use 'long absMillis' instead of 'Date date' |
(package private) static String |
terseCompleteDateString(Date date)
This must return one that can be used within a filename, so convert ":"s to "_"s. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
TraceDateToString()
Method Detail |
static final String dateTimeString(Date date)
static final String terseCompleteDateString(Date date)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |