Functions Reference

Table Of Contents
Get functions
F
ILEMAKER FUNCTIONS REFERENCE 130
Get(CurrentTimeUTCMilliseconds)
Purpose
Returns the current time in Coordinated Universal Time (UTC) to the nearest millisecond.
Format
Get(CurrentTimeUTCMilliseconds)
Parameters
None
Data type returned
number, time
Originated in
FileMaker Pro 13.0
Description
Returns the current time without time zone adjustments in the form of the number of milliseconds
since 1/1/0001. UTC time zone adjustments must be applied to return your local time.
Note In client/server and peer-to-peer environments, this function evaluates the status of the client
machine running the
script (not the host machine).
Example 1
Calculates the amount of time it takes to find and sort records as specified in the script.
Set Variable [$START ; Get ( CurrentTimeUTCMilliseconds )]
Go to Layout ["Invoices"]
Perform Find [Restore]
Sort Records [Restore; No dialog]
Set Variable [$END ; Get ( CurrentTimeUTCMilliseconds )]
Show Custom Dialog ["Script Duration" ; GetAsTime ( $END - $START )]
Example 2
Calculates the local time for the specified time zone. When the time in UTC is 08:43:55.304 and
TimeAdjustment contains -7:
GetAsTime ( ( Get ( CurrentTimeUTCMilliseconds ) + (
Location::TimeAdjustment * 3600000 ) ) / 1000 )
returns 1:43:55.304 PM.