---
title: TimeDataSource
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/timedatasource
---

# TimeDataSource

A source of time related data.

## Declaration

```swift
struct TimeDataSource<Value>
```

## Overview

Overview Instances of this type provide Text with live and automatically updating values in Widgets, Live Activities, watchOS Complications, and of course regular apps.

## Topics

### Type Properties

- [currentDate](swiftui/timedatasource/currentdate.md)

### Type Methods

- [dateRange(endingAt:)](swiftui/timedatasource/daterange(endingat:).md)
- [dateRange(startingAt:)](swiftui/timedatasource/daterange(startingat:).md)
- [durationOffset(to:)](swiftui/timedatasource/durationoffset(to:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Formatting date and time

- [SystemFormatStyle](swiftui/systemformatstyle.md)
