Code example for Calendar

Methods: get, getTimeInMillis

0
	@Override 
	protected Calendar getTimeFromUrl(String url) {
		String str = url.substring(url.length()-11, url.length()-1);
		String[] time = str.split("/");
		int year = Integer.parseInt(time[0]);
		int month = Integer.parseInt(time[1]) - 1;
		int day = Integer.parseInt(time[2]);
		Calendar date = Calendar.getInstance(m_zone);
		date.set(year, month, day);
		return date;
	} 
 
	@Override 
	public String getUrlFromTime(Calendar cal) {
		return String.format(_getUrlFormat(),
				cal.get(Calendar.YEAR),
				cal.get(Calendar.MONTH)+1,
				cal.get(Calendar.DAY_OF_MONTH));
	} 
 
	@Override 
	protected boolean htmlNeeded() { 
		return true;