---
title: "secondsFromGMT(for:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/timezone/secondsfromgmt(for:)"
---

# secondsFromGMT(for:)

The current difference in seconds between the time zone and Greenwich Mean Time.

## Declaration

```swift
func secondsFromGMT(for date: Date = Date()) -> Int
```

## Parameters

- `date`: The date to use for the calculation. The default value is the current date.

## See Also

### Getting Time Zone Information

- [identifier](foundation/timezone/identifier.md)
- [abbreviation(for:)](foundation/timezone/abbreviation(for:).md)
- [timeZoneDataVersion](foundation/timezone/timezonedataversion.md)
