Code example for Time

Methods: beforesetToNow

	// updates the date in the TextView 
	private void updateDisplay() { 
		final StringBuilder sb = new StringBuilder();
		final Time now = new Time();
		final Time bday = new Time();
		bday.monthDay = mDay;
		bday.month = mMonth;
		bday.year = mYear;
		if (now.before(bday)) {
			sb.append("Du bist noch nicht geboren!");
		} else if (now.month == mMonth && now.monthDay == mDay) {
			now.year -= mYear;
			sb.append("Alles gute zum ").append(now.year)
Stop searching for code, let great code find you!  Add Codota to your java IDE