---
title: timeZone
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/datecomponents/timezone
---

# timeZone

A time zone.

## Declaration

```swift
var timeZone: TimeZone? { get set }
```

## Discussion

Discussion note: This value is interpreted in the context of the calendar in which it is used.

## See Also

### Initializing Date Components

- [init(calendar:timeZone:era:year:month:day:hour:minute:second:nanosecond:weekday:weekdayOrdinal:quarter:weekOfMonth:weekOfYear:yearForWeekOfYear:)](foundation/datecomponents/init(calendar:timezone:era:year:month:day:hour:minute:second:nanosecond:weekday:weekdayordinal:quarter:weekofmonth:weekofyear:yearforweekofyear:).md)
- [calendar](foundation/datecomponents/calendar.md)
