---
title: "init(forSecondsFromGMT:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nstimezone/init(forsecondsfromgmt:)"
---

# init(forSecondsFromGMT:)

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

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

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

### Creating Time Zones

- [init(name:)](foundation/nstimezone/init(name:).md)
- [init(name:data:)](foundation/nstimezone/init(name:data:).md)
- [init(abbreviation:)](foundation/nstimezone/init(abbreviation:).md)
- [knownTimeZoneNames](foundation/nstimezone/knowntimezonenames.md)
- [abbreviationDictionary](foundation/nstimezone/abbreviationdictionary.md)
