** to all *** who's this fella and what planet is he from really?? <grin>

** to alien programmer from another planet ** Welcome to CF-Community, be
prepared to be beamed into another universe. You have to like Blueberry
Muffins, Puns, Judith's and Molly the horse.

<grin>

Erika
(with a *K*)

"Blessed are they who can laugh at themselves, for they shall never cease to
be amused."

-----Original Message-----
From: another programmer [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 11:53 PM
To: CF-Community
Subject: What's the diff?


I just made a boo boo and emailed CF-Talk instead of CF-Community... sigh...
anyway, here's my mail:

So your wondering, if I'm working on some system on the other side of the
panet, or just in another time zone, but I want it working off my time, not
the servers', what do I do?
And perhaps you don't want to fiddle with JavaScript. :-P

Well, I wrote an email awhile back answering something like this, but I want
to know: was my answer the best way, or the worst?

<cfscript>
// calculate the current Diff (your local time) from GMT/UTC in seconds as
request.remoteDiff_seconds then this'll do the rest
// lets pick the east side of Australia (+10 GMT)
request.remoteDiff_seconds = 36000;
request.remoteDate = DateAdd("s", request.remoteDiff_seconds, DateAdd("s",
StructFind(GetTimeZoneInfo(), "utcTotalOffset"), Now()));
// now use request.remoteDate instead of now() (hey, it'll likely only be
seconds out, what's the fuss?)
</cfscript>



<cf_info source="brain">
    okay, I admit it, I just wanted to communicate with human beings for a
minute.... sure, I like code, but I want to participate in conversation with
real beings...
    <cf_dream>
        One day I'll write good enough code that someone will say "hey, have
a break and go talk to people for a couple of days" ahh
    </cf_dream>
</cf_info>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to