Time.TimeZoneOffset
-------------------

Queries time zone offset.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Time](component_Time.md) | [9.1](newinversion91.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Time.TimeZoneOffset"; AsText ) 

**MBS**( **"Time.TimeZoneOffset";** /\* Queries time zone offset. \*/  
**$AsText**) /\* Pass 1 to get back time zone as text like "+03:00".  
Otherwise default is zero to return as number of seconds.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AsText | Pass 1 to get back time zone as text like "+03:00".   Otherwise default is zero to return as number of seconds. | 1 |

### Result

Returns value or error.

### Description

Queries time zone offset.  
Returns either seconds or formatted text.  
  
Time zone changes on Windows don't take effect until you restart FileMaker. For MacOS, the functions notice the changes in system automatically.  
### Examples

Query time zone as text:

 MBS ( "Time.TimeZoneOffset"; 1 )  
<small>  
Example result: "+01:00"</small>Query time zone as number:

 MBS ( "Time.TimeZoneOffset"; 0 )  
<small>  
Example result: 3600</small>### Release notes

- **Version 9.1**
    - Added [Time.TimeZoneOffset](http://www.mbsplugins.eu/TimeTimeZoneOffset.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 9.1pr4](https://www.mbsplugins.de/archive/2019-02-25/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 20th February 2019 , last changed 20th February 2019

  
[Time.TimeStampToUTC](TimeTimeStampToUTC.md) - [Time.UnixTimeStamp](TimeUnixTimeStamp.md)

[HTML Version](TimeTimeZoneOffset.shtml)