---
title: "timeSamples(in:)"
framework: usdkit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "usdkit/usdtransformoperation/timesamples(in:)"
---

# timeSamples(in:)

Returns time samples authored within the specified interval.

## Declaration

```swift
func timeSamples(in interval: ClosedRange<USDStage.TimeCode>) -> [USDStage.TimeCode]
```

## Parameters

- `interval`: The time interval to query.

## Return Value

Return Value Time samples within the interval, or an empty array if none exist.
