Whatever message this page gives is out now! Go check it out!
GetTimeZoneInfo() |
| Parameter | Required | Description |
| timezone | No | Specify a timezone to return info from (Uses system timezone if not provided). For example, "US/Eastern" |
| locale | No | The locale used to format the output (Uses system local if not provided) For example, "en_US". |
<cfscript>
curdatetime = now();
writeOutput("The local date and time are " & curdatetime & "<br/>");
info = GetTimeZoneInfo();
writeOutput("Total offset in seconds is " & info.utcTotalOffset & "<br/>");
writeOutput("Offset in hours is " & info.utcHourOffset & "<br/>");
writeOutput("Total offset in minutes minus is " & info.utcMinuteOffset & "<br/>");
writeOutput("Is DST? " & info.isDSTOn & "<br/>");
</cfscript><cfscript>
writeDump(getTimeZoneInfo("Asia/Singapore"));
writeDump(getTimeZoneInfo("Japan"));
</cfscript><cfscript>
writeDump(getTimeZoneInfo("Asia/Kolkata","zh_CN"));
writeDump(getTimeZoneInfo("Asia/Kolkata","ja_JP"));
</cfscript>