Code example for TimeUnit

Methods: toMinutes

0
		} 
		 
//		Avoid passing progress handler timing if its greater then 0 
		if (progressHandlerTiming > 0 && miliToNextAlarm > progressHandlerTiming + currentTime)
		{ 
			Log.d("ALARM", "Progress Handler Wants Alarm in: " + TimeUnit.MILLISECONDS.toMinutes(progressHandlerTiming) + " Min");
			miliToNextAlarm = progressHandlerTiming + currentTime;
		} 
		 
		debugCal.setTimeInMillis(miliToNextAlarm);
		Log.d("ALARM", "AFTER CHECK -- Clock Handler Next Alarm: " + debugCal.getTime());
 
		return miliToNextAlarm;
	} 
	 
	private static PendingIntent getPendingIntent(Context context, Event event)
	{ 
		Intent intent = new Intent(context, ClockHandler.class);
		intent.putExtra("eventStr", event.encodeToString());
		PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);
		return pendingIntent;