<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHaptics",
  "identifier" : "/documentation/CoreHaptics/CHHapticError/Code/invalidTime",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Core Haptics"
    ],
    "preciseIdentifier" : "c:@E@CHHapticErrorCode@CHHapticErrorCodeInvalidTime"
  },
  "title" : "CHHapticError.Code.invalidTime"
}
-->

# CHHapticError.Code.invalidTime

The time offset passed to the haptic engine is invalid.

```
case invalidTime
```

## Discussion

This error occurs when you pass a negative or improperly formatted time value to the haptic engine.

---

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)