<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "watchOS: 7.0.0 - 27.3.0"
  ],
  "documentType" : "symbol",
  "framework" : "ClockKit",
  "identifier" : "/documentation/ClockKit/CLKTimeTextProvider/initWithDate:timeZone:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ClockKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLKTimeTextProvider(im)initWithDate:timeZone:"
  },
  "title" : "initWithDate:timeZone:"
}
-->

# initWithDate:timeZone:

Creates and returns a text provider for displaying the specified time.

```
- (instancetype) initWithDate:(NSDate *) date timeZone:(NSTimeZone *) timeZone;
```

## Parameters

`date`

The date object containing the time to display. This parameter must not be `nil`.

`timeZone`

The time zone to use when formatting the date. If you specify `nil`, the text provider uses the default time zone currently associated with the user.

## Return Value

A text provider initialized with the specified date and time zone value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)