v Alarm To Min
Calculates the minutes before/after an event/task a given alarm occurs.
Return
Pair of values:
whether the minutes are related to the start or end (always Related.START if allowRelEnd is false)
number of minutes before start/end (negative value means number of minutes after start/end)
May be null if there's not enough information to calculate the number of minutes.
Parameters
the alarm to calculate the minutes from
reference DTSTART from the calendar component
reference DTEND (VEVENT) or DUE (VTODO) from the calendar component
true: caller accepts minutes related to the end; false: caller only accepts minutes related to the start
Android's alarm granularity is minutes. This methods calculates with milliseconds, but the result is rounded down to minutes (seconds cut off).