fork(12) download
  1. import java.text.SimpleDateFormat;
  2. import java.util.Date;
  3.  
  4. public class Main {
  5. public static void main(String[] argv) throws Exception {
  6. SimpleDateFormat df = new SimpleDateFormat("dd MMM yyyy HH:mm:ss");
  7. String asGmt = df.format(new Date()) + " GMT";
  8. System.out.println(asGmt);
  9. }
  10. }
Success #stdin #stdout 0.1s 216192KB
stdin
Standard input is empty
stdout
19 Oct 2012 06:54:44 GMT