Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
Videos
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  

Time.UnixTimeStamp

Returns the unix time stamp.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Utility 3.1 Yes Yes Yes Yes Yes
MBS( "Time.UnixTimeStamp" { ; timestamp; gmt } )   More

Parameters

Parameter Description Example value
timestamp Optional
Optional, a FileMaker timestamp to convert.
Get(SystemTimeStamp)
gmt Optional
Available in MBS FileMaker Plugin 10.3 or newer.
Whether to use GMT as time zone.
Pass 1 for GMT or 0 for local.
0

Result

Returns time stamp as number.

Description

Returns the unix time stamp.
If called with no parameters, returns current time stamp (GMT).
If you pass a timestamp, this timestamp is converted. Be aware that the system timezone is used.

Convert back to FileMaker with Time.UnixTimeStampToFileMaker function.

Examples

Calc current time:

MBS( "Time.UnixTimeStamp"; Get(CurrentTimeStamp) )

Example result: 1481452626

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 2nd June 2020


Time.TimeZoneOffset   -   Time.UnixTimeStampToFileMaker

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins