GetTimeZoneInfo

Description

Returns a structure that contains time zone information for the computer on which it is executed. The structure contains four elements with the following keys:

Category

Date and time functions

Syntax

GetTimeZoneInfo() 

See also

DateConvert, CreateDateTime, DatePart

Example

<html>
<head>
<title>GetTimeZoneInfo Example</title>
</head>
<body bgcolor = silver>
<H3>GetTimeZoneInfo Example</H3>
<!--- This example shows the use of GetTimeZoneInfo --->

<cfoutput>
The local date and time are #now()#.
</cfoutput>

<cfset info = GetTimeZoneInfo()>
<cfoutput>
<P>Total offset in seconds is #info.utcTotalOffset#.</P>
<P>Offset in hours is #info.utcHourOffset#.</P>
<P>Offset in minutes minus the offset in hours is
  #info.utcMinuteOffset#.</P>
<P>Is Daylight Savings Time in effect? #info.isDSTOn#.</P>
</cfoutput>
  
</body>
</html>