---
title: "isEqual(to:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nstimezone/isequal(to:)"
---

# isEqual(to:)

Indicates whether the receiver has the same name and data as the specified time zone.

## Declaration

```swift
func isEqual(to aTimeZone: TimeZone) -> Bool
```

## Parameters

- `aTimeZone`: The time zone to compare with the receiver.

## Return Value

Return Value true if aTimeZone and the receiver have the same name and data, otherwise false.
