<SCRIPT>
// This script is designed to replace the "0" that you get using
// the getHours().  Nothing to it.
// richard lands http://www.taja.com/
// If you use let drop me a line at [EMAIL PROTECTED]
// peace
function getTime() {
                var mins = ((min < 10) ? ":0" : ":") + min
                var secs = ((sec < 10) ? ":0" : ":") + sec
                if ( hour < 12) {
                        var am = (hour == 0) ? "12" : hour
                        document.write(am + mins + secs +" a.m.")
                        }
                if (hour > 12) {
                        var pm = hour - 12
                        document.write(pm + mins + secs +" p.m.")
                        }
                if (hour == 12) {
                        var noon = hour
                        document.write(noon + mins + secs +" p.m.")
                        }
                }
</SCRIPT>
<SCRIPT>
<!--

        time = new Date()
        hour = time.getHours()
        min = time.getMinutes()
        sec = time.getSeconds()


        getTime()

// -->
</SCRIPT>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 12:54 AM
To: CF-Talk
Subject: Adjusting Time for Local Timezone?



--part1_9f.26d60b87.2a08c5e0_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Is it possible to get the local date and time (for the client) and store it
is a session variable? The server is in a different time zone.

Appreciate it if someone could help me out.

Marc

--part1_9f.26d60b87.2a08c5e0_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<HTML><FONT FACE=arial,helvetica><FONT  SIZE=2 FAMILY="SANSSERIF"
FACE="Arial" LANG="0">Is it possible to get the local date and time (for the
client) and store it is a session variable? The server is in a different
time zone.<BR>
<BR>
Appreciate it if someone could help me out.<BR>
<BR>
Marc</FONT></HTML>

--part1_9f.26d60b87.2a08c5e0_boundary--
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to