1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.core.ws.binding; |
17 |
|
|
18 |
|
import java.util.Calendar; |
19 |
|
import java.util.Date; |
20 |
|
import java.util.GregorianCalendar; |
21 |
|
|
22 |
|
import javax.xml.bind.DatatypeConverter; |
23 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
24 |
|
public class DateAdapter { |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
25 |
0
|
public static Date parseDate(String s) {... |
26 |
0
|
return DatatypeConverter.parseDate(s).getTime(); |
27 |
|
} |
28 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
29 |
0
|
public static String printDate(Date dt) {... |
30 |
0
|
Calendar cal = new GregorianCalendar(); |
31 |
0
|
cal.setTime(dt); |
32 |
0
|
return DatatypeConverter.printDate(cal); |
33 |
|
} |
34 |
|
} |