1 import java
.util
.*; // for Date()
4 public class SimpleDateFormatTest
6 public static void main(String args
[])
9 SimpleDateFormat formatter
10 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
11 Date current
= new Date();
12 System
.out
.println("PASSED: time="+formatter
.format(current
));
13 } catch (Exception e
) {
14 System
.out
.println("FAILED: "+e
);