1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.PriorityQueue; public class Main { public static void main(String[] args) throws ParseException { String target = "Thu Sep 28 20:29:30 JST 2000"; DateFormat df = new SimpleDateFormat("EEE MMM dd kk:mm:ss ZZZ yyyy"); Date result = df.parse(target); System.out.println(result); } } |
-
upload with new input
-
result: Success time: 0.11s memory: 380992 kB returned value: 0
fri oct 23 20:22:45 JST 1992
Thu Sep 28 11:29:30 GMT 2000
-
result: Success time: 0.06s memory: 246080 kB returned value: 0
Fri Oct 19 15:25:05 CEST 2012
Thu Sep 28 11:29:30 GMT 2000
-
result: Success time: 0.06s memory: 246080 kB returned value: 0
Fri Oct 12 13:25:57 CEST 2012
Thu Sep 28 11:29:30 GMT 2000
-
result: Success time: 0.06s memory: 246080 kB returned value: 0
import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.PriorityQueue; public class Main { public static void main(String[] args) throws ParseException { String target = "Thu Sep 28 20:29:30 JST 2000"; DateFormat df = new SimpleDateFormat("dd kk:mm:ss ZZZ yyyy"); Date result = df.parse(target); System.out.println(result); } }Thu Sep 28 11:29:30 GMT 2000
-
result: Success time: 0.06s memory: 246080 kB returned value: 0
Thu Sep 28 11:29:30 GMT 2000
-
result: Success time: 0.09s memory: 213312 kB returned value: 0
Tue May 24 10:43:07 CST 2011
Thu Sep 28 11:29:30 GMT 2000
-
result: Success time: 0.09s memory: 213440 kB returned value: 0
Thu Sep 28 11:29:30 GMT 2000


