<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Simple Date and Time Localization With JavaScript</title>
	<atom:link href="http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/</link>
	<description></description>
	<pubDate>Fri, 25 Jul 2008 05:24:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-711003</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 30 Apr 2008 11:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-711003</guid>
		<description>&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;blockquote&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code></code><code><blockquote><em><strong></strong></em></blockquote><blockquote></blockquote></code></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Redoc</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-378571</link>
		<dc:creator>Redoc</dc:creator>
		<pubDate>Wed, 12 Sep 2007 18:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-378571</guid>
		<description>I came across an article that explains how to create a javascript that achieves alot about what is talked about here. It is unobtrusive, and degrades gracefully. Available at:
http://javascript.codeislogic.com/convert-utc-dates-to-local-timezone-offset-automatically</description>
		<content:encoded><![CDATA[<p>I came across an article that explains how to create a javascript that achieves alot about what is talked about here. It is unobtrusive, and degrades gracefully. Available at:<br />
<a href="http://javascript.codeislogic.com/convert-utc-dates-to-local-timezone-offset-automatically" rel="nofollow">http://javascript.codeislogic.com/convert-utc-dates-to-local-timezone-offset-automatically</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: clydesan</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-300040</link>
		<dc:creator>clydesan</dc:creator>
		<pubDate>Tue, 10 Jul 2007 18:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-300040</guid>
		<description>&lt;p&gt;Paul, this is a neat solution with the RFC 2822 date, and more than adequate (at least for English speakers).  What follows is not a criticism of that.
&lt;/p&gt;&lt;p&gt;
Nobody has mentioned the international date-time standard ISO 8601.  This is the basis of RFC 3339, the basis for date-times in SQL, and the basis for dates in the iCal calendar standard and thereby in the microformat standard for date-time.
&lt;/p&gt;&lt;p&gt;
I can not agree with your statement
&lt;/p&gt;
&lt;blockquote&gt;an RFC 2822 date like “Tue, 12 Jun 2007 08:53:21 +1000″ is much nicer and easier to read for a human than an RFC 3339 formatted date like “2007-06-12T08:53:21+10:00″
&lt;/blockquote&gt;
&lt;p&gt;
It is perhaps a tiny bit nicer and easier to read for an English speaker, only because of its familiarity. The time portion in each case is about the same; the ISO 8601 date format YYYY-MM-DD is easy to understand even for those who never saw it before, and it is standard usage in Asia.  Personally, I have been using this date format since 1974.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Paul, this is a neat solution with the RFC 2822 date, and more than adequate (at least for English speakers).  What follows is not a criticism of that.
</p>
<p>
Nobody has mentioned the international date-time standard ISO 8601.  This is the basis of RFC 3339, the basis for date-times in SQL, and the basis for dates in the iCal calendar standard and thereby in the microformat standard for date-time.
</p>
<p>
I can not agree with your statement
</p>
<blockquote><p>an RFC 2822 date like “Tue, 12 Jun 2007 08:53:21 +1000″ is much nicer and easier to read for a human than an RFC 3339 formatted date like “2007-06-12T08:53:21+10:00″
</p></blockquote>
<p>
It is perhaps a tiny bit nicer and easier to read for an English speaker, only because of its familiarity. The time portion in each case is about the same; the ISO 8601 date format YYYY-MM-DD is easy to understand even for those who never saw it before, and it is standard usage in Asia.  Personally, I have been using this date format since 1974.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: omnicity</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-281031</link>
		<dc:creator>omnicity</dc:creator>
		<pubDate>Wed, 20 Jun 2007 10:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-281031</guid>
		<description>I give up. 
Who can argue with someone who quotes Wikipedia ?!</description>
		<content:encoded><![CDATA[<p>I give up.<br />
Who can argue with someone who quotes Wikipedia ?!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michel Merlin</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-280168</link>
		<dc:creator>Michel Merlin</dc:creator>
		<pubDate>Tue, 19 Jun 2007 15:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-280168</guid>
		<description>&lt;a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol" rel="nofollow"&gt;SMTP &lt;/a&gt; (basically a protocol to route messages), &lt;a href="http://en.wikipedia.org/wiki/HTML" rel="nofollow"&gt;HTML&lt;/a&gt; (basically a mark-up language), and the present &lt;a href="http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript" rel="nofollow"&gt;Simple Date and Time Localization With JavaScript&lt;/a&gt; discussion, are not directly related; no need IMO to bring the 2 first here. The RFC2822, that was brought in the article, is IMO more related - as some (including me) apparently thought, since they replied about it.

Versailles, Tue 19 Jun 2007 17:19:50 +0200</description>
		<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol" rel="nofollow">SMTP </a> (basically a protocol to route messages), <a href="http://en.wikipedia.org/wiki/HTML" rel="nofollow">HTML</a> (basically a mark-up language), and the present <a href="http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript" rel="nofollow">Simple Date and Time Localization With JavaScript</a> discussion, are not directly related; no need IMO to bring the 2 first here. The RFC2822, that was brought in the article, is IMO more related - as some (including me) apparently thought, since they replied about it.</p>
<p>Versailles, Tue 19 Jun 2007 17:19:50 +0200</p>]]></content:encoded>
	</item>
	<item>
		<title>By: omnicity</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-280120</link>
		<dc:creator>omnicity</dc:creator>
		<pubDate>Tue, 19 Jun 2007 14:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-280120</guid>
		<description>Michel,
Please try and relax a little, you make it sound like I insulted you personally!

To make it quite clear, I am not trying to pull this down as a solution to the Author's problem. However when I first started to read the article, I thought that it might offer a solution to a problem of mine, but I am still not convinced that this is a universal solution.

I am afraid that your argument is also flawed - this date format may be used in 95% of emails (or whatever the percentage actually is)  but it is never read by a human. To me,  +1000  is very nearly as ambiguous as using a time zone abbreviation, as it is not clear whether the 10 hours should be added or subtracted to the time as written.

Similarly, my point about the date format being ambiguous again applies to Human use. By including both the day name and the date number, the possibility of ambiguity is introduced if the two do not match, which is very likely if it is edited by hand. 

Still don't get what your last para means - what is the relation between SMTP and HTTP ?</description>
		<content:encoded><![CDATA[<p>Michel,<br />
Please try and relax a little, you make it sound like I insulted you personally!</p>
<p>To make it quite clear, I am not trying to pull this down as a solution to the Author&#8217;s problem. However when I first started to read the article, I thought that it might offer a solution to a problem of mine, but I am still not convinced that this is a universal solution.</p>
<p>I am afraid that your argument is also flawed - this date format may be used in 95% of emails (or whatever the percentage actually is)  but it is never read by a human. To me,  +1000  is very nearly as ambiguous as using a time zone abbreviation, as it is not clear whether the 10 hours should be added or subtracted to the time as written.</p>
<p>Similarly, my point about the date format being ambiguous again applies to Human use. By including both the day name and the date number, the possibility of ambiguity is introduced if the two do not match, which is very likely if it is edited by hand. </p>
<p>Still don&#8217;t get what your last para means - what is the relation between SMTP and HTTP ?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michel Merlin</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-279903</link>
		<dc:creator>Michel Merlin</dc:creator>
		<pubDate>Tue, 19 Jun 2007 09:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-279903</guid>
		<description>omnicity said Thu 14 June 19:53: « So was that a typo in your previous post when you had +1000 for the time zone info? »

This is the ONLY official (and unambiguous) way to state that the TOG (Time Offset over GMT) is + 10 hour 0 minute (I recall that RFC2822 states to use TOG, not "time zone"). Since used in headers of 95% of the email messages on earth, it is quickly and unambiguously understood by most people anywhere on the planet; as Paul Annesley said on Tue 12 June 8:57: « the RFC 2822 format is non-ambiguous ». Please see details in &lt;a href="http://www.sitepoint.com/forums/showthread.php?t=450107#post3243632" rel="nofollow"&gt;PST and PDT; TZ and TOG; UTC and GMT; Internet Date &#38; Time; PHP date&lt;/a&gt;. I add that a date like "1/2/3" (or "01/02/03") is read:

- by an American, as (Thu) 2 Jan 2003
- by an European, as (Sat) 1 Feb 2003
- by a Newzealander, as (Sat) 3 Feb 2001

omnicity said Wed 13 June 19:09: « ...relying on a single portion of an otherwise un-related RFC is strange (what has SMTP got to do with HTTP ?) »

RFC2822 is titled "Internet Message Format", its chap 3.3 is "Date and Time Specification", and is applied by 95% in the ~200 countries on earth, hence looks IMO quite "related" in this discussion titled "Simple Date and Time Localization With JavaScript".

Versailles, Tue 19 Jun 2007 11:42:05 +0200</description>
		<content:encoded><![CDATA[<p>omnicity said Thu 14 June 19:53: « So was that a typo in your previous post when you had +1000 for the time zone info? »</p>
<p>This is the ONLY official (and unambiguous) way to state that the TOG (Time Offset over GMT) is + 10 hour 0 minute (I recall that RFC2822 states to use TOG, not &#8220;time zone&#8221;). Since used in headers of 95% of the email messages on earth, it is quickly and unambiguously understood by most people anywhere on the planet; as Paul Annesley said on Tue 12 June 8:57: « the RFC 2822 format is non-ambiguous ». Please see details in <a href="http://www.sitepoint.com/forums/showthread.php?t=450107#post3243632" rel="nofollow">PST and PDT; TZ and TOG; UTC and GMT; Internet Date &amp; Time; PHP date</a>. I add that a date like &#8220;1/2/3&#8243; (or &#8220;01/02/03&#8243;) is read:</p>
<p>- by an American, as (Thu) 2 Jan 2003<br />
- by an European, as (Sat) 1 Feb 2003<br />
- by a Newzealander, as (Sat) 3 Feb 2001</p>
<p>omnicity said Wed 13 June 19:09: « &#8230;relying on a single portion of an otherwise un-related RFC is strange (what has SMTP got to do with HTTP ?) »</p>
<p>RFC2822 is titled &#8220;Internet Message Format&#8221;, its chap 3.3 is &#8220;Date and Time Specification&#8221;, and is applied by 95% in the ~200 countries on earth, hence looks IMO quite &#8220;related&#8221; in this discussion titled &#8220;Simple Date and Time Localization With JavaScript&#8221;.</p>
<p>Versailles, Tue 19 Jun 2007 11:42:05 +0200</p>]]></content:encoded>
	</item>
	<item>
		<title>By: omnicity</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-274979</link>
		<dc:creator>omnicity</dc:creator>
		<pubDate>Thu, 14 Jun 2007 09:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-274979</guid>
		<description>So was that a typo in your previous post when you had +1000  for the time zone info? 
That is an extremely ambiguous portion of the date format, more so even than the truncated month.
(But not quite as bad as PCT and EST or whatever.)

Again, doesn't it make more sense to use a truly unambiguous machine-only format that is hidden from the user, coupled with a nicely formatted human-friendly, visible date?</description>
		<content:encoded><![CDATA[<p>So was that a typo in your previous post when you had +1000  for the time zone info?<br />
That is an extremely ambiguous portion of the date format, more so even than the truncated month.<br />
(But not quite as bad as PCT and EST or whatever.)</p>
<p>Again, doesn&#8217;t it make more sense to use a truly unambiguous machine-only format that is hidden from the user, coupled with a nicely formatted human-friendly, visible date?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Annesley</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-274379</link>
		<dc:creator>Paul Annesley</dc:creator>
		<pubDate>Wed, 13 Jun 2007 23:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-274379</guid>
		<description>The RFC 2822 date format "Tue, 12 Jun 2007 08:53:21 GMT" met our requirements; an unambiguous date which is easily read by English speakers, and can be passed straight into a JavaScript Date constructor.

If our requirements change in the future, for example if we provide our content in a language other than English, then we could choose another suitable format.  We have the flexibility of using any format which JavaScript Date understands, without having to change any of our JavaScript code.

I'm perfectly happy to borrow a suitable date format from an unrelated RFC, rather than making up a non-standard format or using a less suitable one.  And given the flexibility we have, it's no drama if our first choice doesn't turn out to be the best.</description>
		<content:encoded><![CDATA[<p>The RFC 2822 date format &#8220;Tue, 12 Jun 2007 08:53:21 GMT&#8221; met our requirements; an unambiguous date which is easily read by English speakers, and can be passed straight into a JavaScript Date constructor.</p>
<p>If our requirements change in the future, for example if we provide our content in a language other than English, then we could choose another suitable format.  We have the flexibility of using any format which JavaScript Date understands, without having to change any of our JavaScript code.</p>
<p>I&#8217;m perfectly happy to borrow a suitable date format from an unrelated RFC, rather than making up a non-standard format or using a less suitable one.  And given the flexibility we have, it&#8217;s no drama if our first choice doesn&#8217;t turn out to be the best.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: omnicity</title>
		<link>http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-273903</link>
		<dc:creator>omnicity</dc:creator>
		<pubDate>Wed, 13 Jun 2007 09:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2007/06/04/simple-date-and-time-localization-with-javascript/#comment-273903</guid>
		<description>Paul,
Those were just the first two that came to mind.

My point was firstly that relying on a single portion of an otherwise un-related RFC is strange (what has SMTP got to do with HTTP ?)
Secondly, the date is not fully readable, fully internationalised, nor much else.  Surely it makes more sense to do this the other way around?</description>
		<content:encoded><![CDATA[<p>Paul,<br />
Those were just the first two that came to mind.</p>
<p>My point was firstly that relying on a single portion of an otherwise un-related RFC is strange (what has SMTP got to do with HTTP ?)<br />
Secondly, the date is not fully readable, fully internationalised, nor much else.  Surely it makes more sense to do this the other way around?</p>]]></content:encoded>
	</item>
</channel>
</rss>
