Show / Hide Table of Contents

GetTimeZoneOffset

Object and Type

Object  : FCApplication

Type     : Method

Prototype

Public Function GetTimeZoneOffset(ByVal TimeZone As String) As Long

Description

This method returns the number of seconds the given time zone is offset from GMT. If the time zone is not found, this method returns a value of zero. The time_zone table is cached in the FCApplication object, so this method does not cause a database round-trip.

Parameters

Parameter Name Required? Description
TimeZone Yes Name of time zone to get the offset for.

Returns

The offset of the time zone from GMT, in seconds. Zero, if the time zone is not found.

Example

The following example retrieves the offset for a time zone.

JavaScript:

<%
var TZ = "Eastern Standard Time";
var TZOffset = FCApp.GetTimeZoneOffset(TZ);
%>

<%=TZ%> is <%=TZOffset%> seconds ahead of GMT.
Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.