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
alarm
the alarm to calculate the minutes from
reference
reference VEvent or VToDo to take start/end time from (required for calculations)
allow Rel End
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).