<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Better time input</title>
	<atom:link href="http://www.phpied.com/javascript-time-input/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/javascript-time-input/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:07:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Toby Ho</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-79205</link>
		<dc:creator>Toby Ho</dc:creator>
		<pubDate>Fri, 04 Nov 2011 14:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-79205</guid>
		<description>What is the license on this? Can I use it for commercial projects?</description>
		<content:encoded><![CDATA[<p>What is the license on this? Can I use it for commercial projects?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-78112</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 01 Jul 2011 20:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-78112</guid>
		<description>Probably not that important, but the fact that 1PM turns to 1:00 AM is really annoying. So I added &#039;i&#039; after all the &#039;re:&#039;s to ignore case. You may want to include that in the original.

For example
Before:
re: /(\d{1,2})(?:p&#124; p)/,
After:
re: /(\d{1,2})(?:p&#124; p)/i,

Much better, especially if you accidentally hit CAPS LOCK</description>
		<content:encoded><![CDATA[<p>Probably not that important, but the fact that 1PM turns to 1:00 AM is really annoying. So I added &#8216;i&#8217; after all the &#8216;re:&#8217;s to ignore case. You may want to include that in the original.</p>
<p>For example<br />
Before:<br />
re: /(\d{1,2})(?:p| p)/,<br />
After:<br />
re: /(\d{1,2})(?:p| p)/i,</p>
<p>Much better, especially if you accidentally hit CAPS LOCK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-78003</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 22 Jun 2011 20:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-78003</guid>
		<description>Added two more parsing patterns:

    // Noon
    {   re: /^noon/i,
        example: new Array(&#039;noon&#039;),
        handler: function() {
            var d = new Date();
            d.setHours(12);
            d.setMinutes(0);
            d.setSeconds(0);
            return d;
        }
    },
    // Midnight
    {   re: /^midnight/i,
        example: new Array(&#039;midnight&#039;),
        handler: function() {
            var d = new Date();
            d.setHours(0);
            d.setMinutes(0);
            d.setSeconds(0);
            return d;
        }
    },</description>
		<content:encoded><![CDATA[<p>Added two more parsing patterns:</p>
<p>    // Noon<br />
    {   re: /^noon/i,<br />
        example: new Array(&#8216;noon&#8217;),<br />
        handler: function() {<br />
            var d = new Date();<br />
            d.setHours(12);<br />
            d.setMinutes(0);<br />
            d.setSeconds(0);<br />
            return d;<br />
        }<br />
    },<br />
    // Midnight<br />
    {   re: /^midnight/i,<br />
        example: new Array(&#8216;midnight&#8217;),<br />
        handler: function() {<br />
            var d = new Date();<br />
            d.setHours(0);<br />
            d.setMinutes(0);<br />
            d.setSeconds(0);<br />
            return d;<br />
        }<br />
    },</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mltsy</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-75060</link>
		<dc:creator>mltsy</dc:creator>
		<pubDate>Wed, 08 Dec 2010 00:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-75060</guid>
		<description>Here is a fixed script - I&#039;ve adjusted getReadable to be a user-friendly representation for my purpose (i.e. &quot;1:30 PM&quot;)

And more importantly, the following inputs have been fixed by updating the timeParsePatterns, and adding a &#039;get_hours&quot; function:
1230am =&gt; 12:30 AM
130 =&gt; 1:30 AM

I&#039;ve also added a &quot;pm_default&quot; option in case you want the default to be pm rather than am - here it is: http://pastie.org/1357481

I should mention that I made a couple modifications to the &quot;magicTime&quot; function itself that use jQuery and made it have a return value.  If these don&#039;t work for you, you can copy the original magicTime function, and it should work fine.

And if you do that, but you still want the default_pm option, it&#039;s as simple as adding it to the parameter list of the function (pastie line 175), and tacking it on to the end of the call to parseTimeString (pastie line 178).  It just has to be passed through.</description>
		<content:encoded><![CDATA[<p>Here is a fixed script &#8211; I&#8217;ve adjusted getReadable to be a user-friendly representation for my purpose (i.e. &#8220;1:30 PM&#8221;)</p>
<p>And more importantly, the following inputs have been fixed by updating the timeParsePatterns, and adding a &#8216;get_hours&#8221; function:<br />
1230am =&gt; 12:30 AM<br />
130 =&gt; 1:30 AM</p>
<p>I&#8217;ve also added a &#8220;pm_default&#8221; option in case you want the default to be pm rather than am &#8211; here it is: <a href="http://pastie.org/1357481" rel="nofollow">http://pastie.org/1357481</a></p>
<p>I should mention that I made a couple modifications to the &#8220;magicTime&#8221; function itself that use jQuery and made it have a return value.  If these don&#8217;t work for you, you can copy the original magicTime function, and it should work fine.</p>
<p>And if you do that, but you still want the default_pm option, it&#8217;s as simple as adding it to the parameter list of the function (pastie line 175), and tacking it on to the end of the call to parseTimeString (pastie line 178).  It just has to be passed through.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patricia</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-73499</link>
		<dc:creator>patricia</dc:creator>
		<pubDate>Tue, 29 Jun 2010 19:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-73499</guid>
		<description>Hello,
great work, this is going to be super useful, but...

i think i found a possible bug!

it can&#039;t seem to tell the difference between am and pm when the hour is 12.  

for example:  

unexpected results:
when i pass:  12:19am
i get: Tue Jun 29 2010 12:19:00 GMT-0400 (Eastern Daylight Time)
and when i pass:12:19pm
i get: Tue Jun 29 2010 12:19:00 GMT-0400 (Eastern Daylight Time)

expected results: 
but when i pass:01:19pm
i get:Tue Jun 29 2010 13:19:00 GMT-0400 (Eastern Daylight Time)
and when i pass:01:19am
i get:Tue Jun 29 2010 01:19:00 GMT-0400 (Eastern Daylight Time)


the behaviour can be duplicated here:
http://www.phpied.com/files/time-parser/time-parser.htm</description>
		<content:encoded><![CDATA[<p>Hello,<br />
great work, this is going to be super useful, but&#8230;</p>
<p>i think i found a possible bug!</p>
<p>it can&#8217;t seem to tell the difference between am and pm when the hour is 12.  </p>
<p>for example:  </p>
<p>unexpected results:<br />
when i pass:  12:19am<br />
i get: Tue Jun 29 2010 12:19:00 GMT-0400 (Eastern Daylight Time)<br />
and when i pass:12:19pm<br />
i get: Tue Jun 29 2010 12:19:00 GMT-0400 (Eastern Daylight Time)</p>
<p>expected results:<br />
but when i pass:01:19pm<br />
i get:Tue Jun 29 2010 13:19:00 GMT-0400 (Eastern Daylight Time)<br />
and when i pass:01:19am<br />
i get:Tue Jun 29 2010 01:19:00 GMT-0400 (Eastern Daylight Time)</p>
<p>the behaviour can be duplicated here:<br />
<a href="http://www.phpied.com/files/time-parser/time-parser.htm" rel="nofollow">http://www.phpied.com/files/time-parser/time-parser.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr8k</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-69976</link>
		<dc:creator>Dr8k</dc:creator>
		<pubDate>Thu, 30 Oct 2008 05:43:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-69976</guid>
		<description>Hey, great work on the script. I was looking for something like this but also implement the jQuery library (www.jquery.com) for other UI elements. I&#039;ve updated your code to work as a jQuery plug in. If you want a copy of that drop me an email.

NB: The conversion is just a basic wrapper at this stage. I&#039;d like to see it with output formatting options etc, but for now it just defaults to 24hour clock.</description>
		<content:encoded><![CDATA[<p>Hey, great work on the script. I was looking for something like this but also implement the jQuery library (www.jquery.com) for other UI elements. I&#8217;ve updated your code to work as a jQuery plug in. If you want a copy of that drop me an email.</p>
<p>NB: The conversion is just a basic wrapper at this stage. I&#8217;d like to see it with output formatting options etc, but for now it just defaults to 24hour clock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-69156</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 27 May 2008 19:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-69156</guid>
		<description>Awesome script, it was _just_ what I was looking for!! Thank you!

@Mendrik, there is one like that, I saw it just the other day. Google JQUERY + Calendar popup</description>
		<content:encoded><![CDATA[<p>Awesome script, it was _just_ what I was looking for!! Thank you!</p>
<p>@Mendrik, there is one like that, I saw it just the other day. Google JQUERY + Calendar popup</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mendrik</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-64155</link>
		<dc:creator>Mendrik</dc:creator>
		<pubDate>Sun, 30 Mar 2008 20:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-64155</guid>
		<description>I wish someone would combine that with a calendar picker next to it, but where the icon is actually draggable. x-axis modifies the day, y-axis the months / year.
That way people could just click and drag to the right while the input field would indicate &quot;next wednesday&quot; &quot;next thursday&quot; until the day is so far off that it would just switch to numeric formats again.</description>
		<content:encoded><![CDATA[<p>I wish someone would combine that with a calendar picker next to it, but where the icon is actually draggable. x-axis modifies the day, y-axis the months / year.<br />
That way people could just click and drag to the right while the input field would indicate &#8220;next wednesday&#8221; &#8220;next thursday&#8221; until the day is so far off that it would just switch to numeric formats again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XavierKGB</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-55242</link>
		<dc:creator>XavierKGB</dc:creator>
		<pubDate>Thu, 03 May 2007 18:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-55242</guid>
		<description>If your initial text box has a style class applied and after submit the style is cleared, I found you can add that style name to the javascript on line 195:

input.className = &#039;YOUR-CLASS-HERE&#039;;

Thanks for the great script!</description>
		<content:encoded><![CDATA[<p>If your initial text box has a style class applied and after submit the style is cleared, I found you can add that style name to the javascript on line 195:</p>
<p>input.className = &#8216;YOUR-CLASS-HERE&#8217;;</p>
<p>Thanks for the great script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.phpied.com/javascript-time-input/#comment-52595</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Thu, 05 Apr 2007 23:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/better-time-input/#comment-52595</guid>
		<description>Twan, that&#039;s gotta be because the parser considers 83 as hour and 0 as minutes. If you do 0830, then it&#039;s fine. But, yeah, it&#039;ll be better if it figures out 8:30 and not 11.

Thanks for the input!</description>
		<content:encoded><![CDATA[<p>Twan, that&#8217;s gotta be because the parser considers 83 as hour and 0 as minutes. If you do 0830, then it&#8217;s fine. But, yeah, it&#8217;ll be better if it figures out 8:30 and not 11.</p>
<p>Thanks for the input!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

