Component: Time 
----------------

Time functions.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [6.1](newinversion61.md "First functions introduced with version 6.1.") / [11.2](newinversion112.md "Newest functions in version 11.2.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [Time.Format](TimeFormat.md)   Formats a date with C time formatting functions. | All   6.4 |
| [Time.Parse](TimeParse.md)   Parses a date. | All   6.4 |
| [Time.TimeStampToUTC](TimeTimeStampToUTC.md)   Converts timestamp to UTC. | All   6.1 |
| [Time.TimeZoneOffset](TimeTimeZoneOffset.md)   Queries time zone offset. | All   9.1 |
| [Time.UnixTimeStampToFileMaker](TimeUnixTimeStampToFileMaker.md)   Converts time from unix to FileMaker. | All   8.3 |
| [Time.Wait](TimeWait.md)   Waits for the given number of milliseconds. | All   11.2 |

6 functions shown.

These functions are free to use.

### Release notes

- **Version 15.0**
    - Improved [Time.Format](https://www.mbsplugins.eu/TimeFormat.shtml) function to return empty result for empty timestamp.
- **Version 14.0**
    - Implemented [Time.Parse](https://www.mbsplugins.eu/TimeParse.shtml) for Windows.
- **Version 11.3**
    - Fixed a problem with a [math](https://www.mbsplugins.eu/component_Math.shtml) function, which affected time zone calculation for [EmailParser.SentDate](https://www.mbsplugins.eu/EmailParserSentDate.shtml), [EmailParser.ReceiveDate](https://www.mbsplugins.eu/EmailParserReceiveDate.shtml) and [Time.TimeStampToUTC](https://www.mbsplugins.eu/TimeTimeStampToUTC.shtml) functions (broken in v11.2).
- **Version 11.2**
    - Added [Time.Wait](https://www.mbsplugins.eu/TimeWait.shtml) function.
- **Version 11.1**
    - Fixed rounding error with [Time.Sleep](https://www.mbsplugins.eu/TimeSleep.shtml) function.
    - Rewrote [Time.UnixTimeStamp](https://www.mbsplugins.eu/TimeUnixTimeStamp.shtml) function to work for dates before 1970 on Windows.
- **Version 10.4**
    - Fixed time zone issue in [Time.TimeStampToUTC](https://www.mbsplugins.eu/TimeTimeStampToUTC.shtml) with Windows with daylight saving.
- **Version 10.3**
    - Added gmt parameter for [Time.UnixTimeStamp](https://www.mbsplugins.eu/TimeUnixTimeStamp.shtml) function.
    - Fixed time zone handling for [Time.UnixTimeStamp](https://www.mbsplugins.eu/TimeUnixTimeStamp.shtml) and [Time.UnixTimeStampToFileMaker](https://www.mbsplugins.eu/TimeUnixTimeStampToFileMaker.shtml) functions.
- **Version 10.2**
    - Fixed a problem on Windows with [Time.Format](https://www.mbsplugins.eu/TimeFormat.shtml) and time zones.
- **Version 10.1**
    - Added [time](https://www.mbsplugins.eu/component_Time.shtml) functions for [JavaScript](https://www.mbsplugins.eu/component_JavaScript.shtml) functions: [JS.Now](https://www.mbsplugins.eu/JSNow.shtml), [JS.TimeToDateComponents](https://www.mbsplugins.eu/JSTimeToDateComponents.shtml), [JS.TimeToUTCDate](https://www.mbsplugins.eu/JSTimeToUTCDate.shtml) and [JS.UTCDateToTime](https://www.mbsplugins.eu/JSUTCDateToTime.shtml).

### Blog Entries

- [Free Tier for MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2023-01-30/Free_Tier_for_MBS_FileMaker_Pl/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr1](https://www.mbsplugins.de/archive/2020-01-30/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.0pr3](https://www.mbsplugins.de/archive/2017-01-13/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.4 for OS X/Windows](https://www.mbsplugins.de/archive/2016-09-27/MBS_FileMaker_Plugin_64_for_OS/monkeybreadsoftware_blog_filemaker)

### Example Databases

- [CURL/WebServices/Twitter oAuth](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/Twitter%20oAuth.shtml#5ScriptAnchor_)
- [Overlay](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Overlay.shtml#6ScriptAnchor_)
- [WebViewer/Calendar/Calendar](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/Calendar/Calendar.shtml#2ScriptAnchor_)
- [Win Only/Search Scripts](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Search%20Scripts.shtml#1ScriptAnchor_)

[HTML Version](component_Time.shtml)