diff options
Diffstat (limited to 'libjava/classpath/testsuite/java.text/SimpleDateFormatTest.java')
-rw-r--r-- | libjava/classpath/testsuite/java.text/SimpleDateFormatTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libjava/classpath/testsuite/java.text/SimpleDateFormatTest.java b/libjava/classpath/testsuite/java.text/SimpleDateFormatTest.java new file mode 100644 index 0000000..4bd8a5f --- /dev/null +++ b/libjava/classpath/testsuite/java.text/SimpleDateFormatTest.java @@ -0,0 +1,17 @@ +import java.util.*; // for Date() +import java.text.*; + +public class SimpleDateFormatTest +{ + public static void main(String args[]) + { + try { + SimpleDateFormat formatter + = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); + Date current = new Date(); + System.out.println("PASSED: time="+formatter.format(current)); + } catch (Exception e) { + System.out.println("FAILED: "+e); + } + } +} |