home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / gettimezoneinfo.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  630 b   |  29 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4. <TITLE>
  5. GetTimeZoneInfo Example
  6. </TITLE>
  7. </HEAD>
  8.  
  9. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  10. <BODY  bgcolor="#FFFFD5">
  11.  
  12. <H3>GetTimeZoneInfo Example</H3>
  13. <!--- This example shows the use of GetTimeZoneInfo --->
  14.  
  15. <CFOUTPUT>
  16. The local date and time are #now()#.
  17. </CFOUTPUT>
  18.  
  19. <CFSET info = GetTimeZoneInfo()>
  20. <CFOUTPUT>
  21. <P>Total offset in seconds is #info.utcTotalOffset#.</P>
  22. <P>Offset in hours is #info.utcHourOffset#.</P>
  23. <P>Offset in minutes minus the offset in hours is #info.utcMinuteOffset#.</P>
  24. <P>Is Daylight Savings Time in effect? #info.isDSTOn#.</P>
  25. </CFOUTPUT>
  26.     
  27. </BODY>
  28.  
  29. </HTML>