444
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:
Date and time functions
Category
GetTimeZoneInfo()
Syntax
See also
DateConvert, CreateDateTime,
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
<P>Is Daylight Savings Time in effect? #info.isDSTOn#.</P>
</cfoutput>
</body>
</html>
offset of the local time, in minutes, from Universal
utcTotalOffset
Coordinated Time (UTC). A plus sign (+) indicates that a time zone is west of
UTC, such as the time zones in North and South America. A minus sign (-)
indicates that a time zone is east of UTC, such as the time zones in Germany.
offset, in hours of local time, from UTC.
utcHourOffset
utcMinuteOffset
For North America, this is always 0. For countries that are not exactly on the hour
offset, the number is between 0 and 60. For example, standard time in Adelaide,
Australia has an offset of 9 hours and 30 minutes from UTC.
True if Daylight Savings Time (DST) is on in the host; False if DST is off.
isDSTOn
#info.utcMinuteOffset#.</P>
offset, in minutes, after the hours offset is taken into account.
DatePart
Chapter 3 ColdFusion Functions
Need help?
Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?