|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
CalendarUtil.java | - | 0% | 0% | 0% |
|
1 |
package com.diasparsoftware.java.util;
|
|
2 |
|
|
3 |
import java.util.*;
|
|
4 |
|
|
5 |
|
|
6 |
public class CalendarUtil { |
|
7 |
|
|
8 | 0 |
public static GregorianCalendar makeGregorianCalendar( |
9 |
int year,
|
|
10 |
int month,
|
|
11 |
int day,
|
|
12 |
int hour,
|
|
13 |
int minute,
|
|
14 |
int second,
|
|
15 |
int millisecond) {
|
|
16 |
|
|
17 | 0 |
GregorianCalendar calendar = |
18 |
new GregorianCalendar(
|
|
19 |
year, |
|
20 |
month - 1, |
|
21 |
day, |
|
22 |
hour, |
|
23 |
minute, |
|
24 |
second); |
|
25 | 0 |
calendar.set(Calendar.MILLISECOND, millisecond); |
26 | 0 |
return calendar;
|
27 |
} |
|
28 |
} |
|
29 |
|
|