<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTIME_IS_POSITIVE_INFINITY",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@macro@CMTIME_IS_POSITIVE_INFINITY"
  },
  "title" : "CMTIME_IS_POSITIVE_INFINITY"
}
-->

# CMTIME_IS_POSITIVE_INFINITY

Returns a Boolean value that indicates whether a time is positive infinity.

```
#define CMTIME_IS_POSITIVE_INFINITY(time)
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the time is positive infinity; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Use this macro instead of testing if a time is equal to [`positiveInfinity`](/documentation/CoreMedia/CMTime/positiveInfinity), because there are many times that represent positive infinity. The system ignores nonflags fields, so they can contain anything.

---

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)