<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 11.0.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMSignificantTimeEvent/init(significantEvent:offset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMSignificantTimeEvent(im)initWithSignificantEvent:offset:"
  },
  "title" : "init(significantEvent:offset:)"
}
-->

# init(significantEvent:offset:)

Creates a new significant time event with the specified significant event and offset.

```
init(significantEvent: HMSignificantEvent, offset: DateComponents?)
```

## Parameters

`significantEvent`

The significant event for this trigger, for example [`sunrise`](/documentation/HomeKit/HMSignificantEvent/sunrise).

`offset`

A date components instance that represents the offset from the significant event that this event fires.

## Return Value

An initialized significant time event which fires at the specified offset from the provided significant event.

## Discussion

To specify that this event should fire before the significant event, supply a date components object with negative values. For example, to specify 30 minutes before sunset, the <doc://com.apple.documentation/documentation/Foundation/DateComponents/minute> property of the `offset` argument must be set to `-30`.

---

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)