>- see footer for list info -<
OK, for those interested it's "bollocks!" to CF in this instance. There's no
point using db tables and updating DST start and end times, seeing as the Java
boys got there first...
<cfset oTimeZone = createObject("java", "java.util.TimeZone")>
<cfset ukCal = createObject("java", "java.util.GregorianCalendar")>
<cfset ukCal.init(2005, 4, 26, 22, 43, 29)>
<cfset ausCal = createObject("java", "java.util.GregorianCalendar")>
<cfset ausCal.init(oTimeZone.getTimeZone("Australia/Melbourne"))>
<cfset ausCal.setTimeInMillis(ukCal.getTimeInMillis())>
<cfset dtMelbourne = createDateTime(ausCal.get(ausCal.YEAR),
ausCal.get(ausCal.MONTH) + 1, ausCal.get(ausCal.DAY_OF_MONTH),
ausCal.get(ausCal.HOUR_OF_DAY), ausCal.get(ausCal.MINUTE),
ausCal.get(ausCal.SECOND))>
<cfoutput><p>#ukCal.getTimeZone().getDisplayName()#<br>
#ukCal.getTime()#</p>
<p>#ausCal.getTimeZone().getDisplayName()#<br>
#ausCal.getTime()#<br>
#dtMelbourne#</p></cfoutput>
--
Aidan Whitehall
Macromedia ColdFusion Developer
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<