---
title: "init(secondsFromGMT:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/timezone/init(secondsfromgmt:)"
---

# init(secondsFromGMT:)

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

## Declaration

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

## Parameters

- `seconds`: The number of seconds from GMT.

## Return Value

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

## Discussion

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).

## See Also

### Creating a Time Zone

- [knownTimeZoneIdentifiers](foundation/timezone/knowntimezoneidentifiers.md)
- [abbreviationDictionary](foundation/timezone/abbreviationdictionary.md)
