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

public class LocalTime
   {
   /**
    * Display current Local Time to the millisecond.
    * Display timestamp in form 2007-12-31T23:59+59.999
    * Similar to Zulu time, but
    * 1. uses local timezone.
    * 2. uses + as seconds separator.
    * 3. milliseconds rather than centiseconds
    * 4. no decorative trailing Z.
    * @param args not used
    */
   public static void main ( String[] args )
      {
      SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm'+'ss'.'SSS" );
      // leave sdf timezone at the default locale.
      System.out.println( sdf.format( new Date() ) );
      }
   }