parameters: (self)
return_statement: return offset
docstring: Returns an offset that can be used to sort events that go against the same relative_to variable.
docstring_summary: Returns an offset that can be used to sort events that go against the same relative_to variable.
docstring_tokens: Returns an offset that can be used to sort events that go against the same relative_to variable .
function: def minute_offset(self):
          """
          Returns an offset that can be used to sort events that go against the same relative_to variable.
          """
          # by default our offset is in minutes
          offset = self.offset
  
          if self.unit == self.UNIT_HOURS:  # pragma: needs cover
              offset = self.offset * 60
          elif self.unit == self.UNIT_DAYS:
              offset = self.offset * 60 * 24
          elif self.unit == self.UNIT_WEEKS:
              offset = self.offset * 60 * 24 * 7
  
          # if there is a specified hour, use that
          if self.delivery_hour != -1:
              offset += self.delivery_hour * 60
  
          return offset
function_tokens: def minute_offset ( self ) : # by default our offset is in minutes offset = self . offset if self . unit == self . UNIT_HOURS : # pragma: needs cover offset = self . offset * 60 elif self . unit == self . UNIT_DAYS : offset = self . offset * 60 * 24 elif self . unit == self . UNIT_WEEKS : offset = self . offset * 60 * 24 * 7 # if there is a specified hour, use that if self . delivery_hour != - 1 : offset += self . delivery_hour * 60 return offset