<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/TemporalSegmentIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents25TemporalSegmentIdentifierV"
  },
  "title" : "TemporalSegmentIdentifier"
}
-->

# TemporalSegmentIdentifier

Uniquely identifiers a segment of a temporal sequence.

```
struct TemporalSegmentIdentifier
```

## Topics

### Creating a segment identifier

[`init(source: String, range: Range<Int>, timescale: Int)`](/documentation/CreateMLComponents/TemporalSegmentIdentifier/init(source:range:timescale:))

Creates a temporal-segment identifier.

### Getting the properties

[`var durationInSeconds: TimeInterval`](/documentation/CreateMLComponents/TemporalSegmentIdentifier/durationInSeconds)

The segment duration in seconds.

[`var range: Range<Int>`](/documentation/CreateMLComponents/TemporalSegmentIdentifier/range)

The segment’s timestamp range.

[`var rangeInSeconds: Range<TimeInterval>`](/documentation/CreateMLComponents/TemporalSegmentIdentifier/rangeInSeconds)

The time range in seconds.

[`var source: String`](/documentation/CreateMLComponents/TemporalSegmentIdentifier/source)

The segment source. For files use the full path or URL of the file.

[`var timescale: Int`](/documentation/CreateMLComponents/TemporalSegmentIdentifier/timescale)

The identifier’s timescale is the number of uniquely identifiable timestamps in a second.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Escapable`](/documentation/Swift/Escapable)

[`Encodable`](/documentation/Swift/Encodable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Copyable`](/documentation/Swift/Copyable)

[`Decodable`](/documentation/Swift/Decodable)

---

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)