Code example for Time

Methods: settoMillis

0
			year = 2038;
			month = Calendar.JANUARY;
			date = 1;
		} 
 
		Time time = new Time(Time.TIMEZONE_UTC);
		time.set(timeOfDay.second, timeOfDay.minute, timeOfDay.hour, date,
				month, year);
		return time.toMillis(false /* use isDst */);
	} 
 
	private static int getDate(String dateString) {
		if (dateString.length() == 2) {
			return (dateString.charAt(0) - '0') * 10
					+ (dateString.charAt(1) - '0');
		} else { 
			return (dateString.charAt(0) - '0');
		} 
	}