Code example for Date

Methods: after, getTime

0
		_prevLong = _longitude;
	} 
 
	private void collectedInTime() { 
		Calendar calendar = Calendar.getInstance();
		Date dateCompleted = new Date(calendar.getTimeInMillis());
		if (date == null)
			return; 
		if (!dateCompleted.after(date)) {
			if (dateCompleted.getTime() < date.getTime()
					|| dateCompleted.getTime() == date.getTime()) {
				_collectedInTime = true;
				Log.d("collectedInTime", "collected");
			} else { 
				_collectedInTime = false;
 
			} 
		} 
	} 
 
	@Override