---
title: timeStyle
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/dateintervalformatter/timestyle
---

# timeStyle

The style to use when formatting hour, minute, and second information.

## Declaration

```swift
var timeStyle: DateIntervalFormatter.Style { get set }
```

## Discussion

Discussion Set this property to an appropriate value before generating string values. The default value of this property is DateIntervalFormatter.Style.none.

## See Also

### Configuring the Formatter Options

- [dateStyle](foundation/dateintervalformatter/datestyle.md)
- [dateTemplate](foundation/dateintervalformatter/datetemplate.md)
- [calendar](foundation/dateintervalformatter/calendar.md)
- [locale](foundation/dateintervalformatter/locale.md)
- [timeZone](foundation/dateintervalformatter/timezone.md)
