org.erights.e.develop.trace
Class TraceDateToString

java.lang.Object
  |
  +--org.erights.e.develop.trace.TraceDateToString

class TraceDateToString
extends Object

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.

Author:
Brian Marick, Mark Miller (modified to use ISO8601)

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

TraceDateToString()
Method Detail

dateTimeString

static final String dateTimeString(Date date)
XXX should fix the tracing package to use 'long absMillis' instead of 'Date date'


terseCompleteDateString

static final String terseCompleteDateString(Date date)
This must return one that can be used within a filename, so convert ":"s to "_"s.



comments?