> -----Original Message-----
> From: Rick Root [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 08, 2006 10:48 AM
> To: CF-Talk
> Subject: SOT: Ajax, Javascript, and UTC Time
> 
> So I'm trying to add timestamps to the join/leave announcements in my
> chat room....
> 
> Coldfusion inserts a UTC timestamp into the database which is returned
> with the content of the chat room for each line.

I've got a JavaScript Date extension library that might help here:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_D
ateExtensions/Index.cfm

It has a static method, Date.parse8601(), that will parse common ISO 8601
dates into a native JavaScript date (and honor the 8601 rules for timezone
conversion).

The formats handled are the same as those in this commonly referenced W3C
note:

http://www.w3.org/TR/NOTE-datetime

It's easy to format an 8601 date in that style in CF.

The library also provides CF-Style date and time format, compare, add and
diff methods.

It's open-sourced under the liberal BSD license.

Jim Davis



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252647
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to