<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSTimeZone/init(forSecondsFromGMT:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTimeZone(cm)timeZoneForSecondsFromGMT:"
  },
  "title" : "init(forSecondsFromGMT:)"
}
-->

# init(forSecondsFromGMT:)

Returns a time zone object offset from Greenwich Mean Time by a given number of seconds.

```
convenience init(forSecondsFromGMT seconds: Int)
```

## Parameters

`seconds`

The number of seconds by which the new time zone is offset from GMT.

## Return Value

A time zone object offset from Greenwich Mean Time by `seconds`.

## Discussion

The name of the new time zone is GMT +/– the offset, in hours and minutes. Time zones created with this method never have daylight savings, and the offset is constant no matter the date.

## See Also

[`+  timeZoneWithName:`](/documentation/Foundation/NSTimeZone/timeZoneWithName:)

Returns the time zone object identified by a given identifier.



---

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)