Title: Date Formatter for LogKitManagement

Hi,

I would like to use a formatter using the simple date format for dates. It might be usefull to everyone to have this integrated in the LogKitManagement. So I would like to suggest patching the PatternFormatter like this:

+    import java.util.Date;
+    import java.text.SimpleDateFormat;

...

    protected String getTime( final long time, final String format )
    {
+        if ( format == null )
+        {
            return Long.toString( time );
+        }

+        SimpleDateFormat simpleDateFormat = new SimpleDateFormat( format );
+        return( simpleDateFormat.format( new Date( time ) ) );       
    }


What do you think?

Michael

----------------------------------------- (on the network)

*********************************
PRIVILEGED - PRIVATE AND CONFIDENTIAL
This e-mail and files transmitted with it are intended solely for the
use of the addressee(s) and may contain information which is
confidential or privileged. If you are not the intended recipient, be
aware that any disclosure, copying, distribution or use of this e-mail
or any attachment is prohibited. If you receive this e-mail and you are
not the addressee, or you have received this e-mail in error, please
disregard the contents of the e-mail, delete the e-mail and notify the
author immediately.
*********************************


---------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to