<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EventKit",
  "identifier" : "/documentation/EventKit/EKAlarm/init(relativeOffset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "EventKit"
    ],
    "preciseIdentifier" : "c:objc(cs)EKAlarm(cm)alarmWithRelativeOffset:"
  },
  "title" : "init(relativeOffset:)"
}
-->

# init(relativeOffset:)

Creates and returns an alarm with a relative offset.

```
init(relativeOffset offset: TimeInterval)
```

## Parameters

`offset`

The offset from the start of an event, at which the alarm fires.

## Return Value

The created alarm.

## Discussion

Negative offset values fire before the start of the event, while positive values fire after the start.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)