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

public class Zulu
   {
   /**
    * Display current Zulu/UTC military time,
    * e.g. 2007-12-31T23:59:99.99Z
    * @param args not used
    */
   public static void main ( String[] args )
      {
      SimpleDateFormat sdf =
      new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" );
      TimeZone utc = TimeZone.getTimeZone( "UTC" );
      sdf.setTimeZone ( utc );
      String milliformat = sdf.format( new Date() );
      // convert from milliseconds to centiseconds
      // by chopping off last digit, and reappending the decorative Z.
      String zulu = milliformat.substring( 0, 22 ) + 'Z' ;
      System.out.println( zulu );
      }
   }