---
title: invalid
framework: coremedia
role: symbol
role_heading: Type Property
path: coremedia/cmtime/invalid
---

# invalid

A value that represents an invalid time.

## Declaration

```swift
static let invalid: CMTime
```

## Discussion

Discussion An invalid time has all of its fields set to 0. Don’t test a time against this constant using (time == invalid) because there are many times that are also invalid. Use CMTIME_IS_INVALID(_:) instead.

## See Also

### Constants

- [zero](coremedia/cmtime/zero.md)
- [indefinite](coremedia/cmtime/indefinite.md)
- [negativeInfinity](coremedia/cmtime/negativeinfinity.md)
- [positiveInfinity](coremedia/cmtime/positiveinfinity.md)
