<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/TimeZone/init(secondsFromGMT:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation8TimeZoneV14secondsFromGMTACSgSi_tcfc"
  },
  "title" : "init(secondsFromGMT:)"
}
-->

# init(secondsFromGMT:)

Returns a time zone initialized with a specific number of seconds from GMT.

```
init?(secondsFromGMT seconds: Int)
```

## Parameters

`seconds`

The number of seconds from GMT.

## Return Value

A time zone, or `nil` if a valid time zone could not be created from `seconds`.

## Discussion

Time zones created with this never have daylight savings and the offset is constant no matter the date. The identifier and abbreviation do NOT follow the POSIX convention (of minutes-west).

---

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)