GetUTCOffset
Rate this function: Average rating: 5.0 (1 vote) Discuss this Custom Function
Jeremy Bante, Gaia Herbs, Inc.
https://github.com/jbante/
Returns the offset from UTC of the current device clock
Sample Input:
// Called from U.S. EST (New York) time zone
List (
GetUTCOffset;
Get ( CurrentTimestamp );
GetAsTimestamp ( Get ( UTCmSecs ) / 1000 + GetUTCOffset )
) |
|
Sample Output:
-14400
05-18-2012 17:04:31
05-18-2012 17:04:31.062 |
|
Description:
Returns the offset from UTC of the current device clock, in seconds. This can be used for establishing the time zone a device is operating in.
This function uses the undocumented Get ( UTCmSecs ) function in FileMaker 12. If FileMaker deprecates it, this function may no longer work.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
ValidateTC( MernisNo ) |
| |
(Tue, Jun 18, 6:44am) |
| 2. |
MinValue( theList ; treatAsNumeric ) |
| |
(Wed, Jun 12, 7:59am) |
| 3. |
MaxValue( theList ; treatAsNumeric ) |
| |
(Wed, Jun 12, 7:57am) |
| 4. |
LengthConvert ( Number , From , To ) |
| |
(Fri, May 31, 2:37pm) |
| 5. |
Backwards( _Field ) |
| |
(Thu, May 23, 10:49am) |
| 6. |
FilteredPortalList ( fieldObjectName ; startingPortalRow ) |
| |
(Tue, May 21, 5:33pm) |
| 7. |
ListToggle ( InList ; InValue ) |
| |
(Thu, May 16, 6:59pm) |
| 8. |
VatFormat ( vat ) |
| |
(Tue, May 14, 2:45am) |
 |
|