From f911ba985aa7fe0096c386c5be385ac5825ea527 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 16 Jul 2005 00:30:23 +0000 Subject: Initial revision From-SVN: r102074 --- .../testsuite/java.text/SimpleDateFormatTest.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libjava/classpath/testsuite/java.text/SimpleDateFormatTest.java (limited to 'libjava/classpath/testsuite/java.text/SimpleDateFormatTest.java') 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); + } + } +} -- cgit v1.1