W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.37,1.38

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 23 Oct 2009 16:27:42 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1N1MzO-00068i-KQ@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv23586/src/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
added a simple getDate() method for the xml output

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- UnicornCall.java	19 Oct 2009 10:09:04 -0000	1.37
+++ UnicornCall.java	23 Oct 2009 16:27:40 -0000	1.38
@@ -5,7 +5,9 @@
 package org.w3c.unicorn;
 
 import java.io.IOException;
+import java.text.SimpleDateFormat;
 import java.util.ArrayList;
+import java.util.Date;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
@@ -583,4 +585,9 @@
 			inputModule.dispose();
 	}
 	
+	public String getDate() {
+		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss'Z'");
+		return format.format(new Date());
+	}
+	
 }
\ No newline at end of file
Received on Friday, 23 October 2009 16:27:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC