src/org/kocakosm/pitaya/time/Dates.java
public static Calendar toCalendar(Date date)
	{
		Calendar calendar = getInstance();
		calendar.setTime(date);
		return calendar;
	}
public static Calendar toCalendar(Date date)
	{
		Calendar calendar = getInstance();
		calendar.setTime(date);
		return calendar;
	}
public static Calendar toCalendar ( Date date ) { Calendar calendar = getInstance ( ) ; calendar . setTime ( date ) ; return calendar ; }
Converts a {@code Date} into a {@code Calendar}.

@param date the {@code Date} to convert to a {@code Calendar}.

@return the created {@code Calendar} instance.

@throws NullPointerException if {@code date} is {@code null}.
Converts a { @code Date } into a { @code Calendar } .