<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: &#8220;Time&#8221; columns and Rails</title>
	<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/</link>
	<description></description>
	<pubDate>Sun, 01 Aug 2010 08:41:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Will Green</title>
		<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-85</link>
		<author>Will Green</author>
		<pubDate>Thu, 03 Jan 2008 18:57:05 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-85</guid>
					<description>Seems like you should be using a DATETIME column type. That's what Rails uses for the magical created_at and updated_at fields.

I don't think TIME is standard SQL, anyway.</description>
		<content:encoded><![CDATA[<p>Seems like you should be using a DATETIME column type. That&#8217;s what Rails uses for the magical created_at and updated_at fields.</p>
<p>I don&#8217;t think TIME is standard SQL, anyway.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rebecca</title>
		<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-86</link>
		<author>Rebecca</author>
		<pubDate>Fri, 04 Jan 2008 10:08:52 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-86</guid>
					<description>Firstly, TIME is definitely given as a data type in the SQL:2003 standard. Take a look at http://www.wiscorp.com/sql_2003_standard.zip for a draft if you don't have a copy yourself.

Secondly, I'm using a TIME column because I specifically don't want date information associated with the time information.

Why would you want date information along with your times if you were writing, say, a train timetable? You want the time the train leaves each station, and what days of the week it runs on.</description>
		<content:encoded><![CDATA[<p>Firstly, TIME is definitely given as a data type in the SQL:2003 standard. Take a look at <a href="http://www.wiscorp.com/sql_2003_standard.zip" rel="nofollow">http://www.wiscorp.com/sql_2003_standard.zip</a> for a draft if you don&#8217;t have a copy yourself.</p>
<p>Secondly, I&#8217;m using a TIME column because I specifically don&#8217;t want date information associated with the time information.</p>
<p>Why would you want date information along with your times if you were writing, say, a train timetable? You want the time the train leaves each station, and what days of the week it runs on.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Anthony Green</title>
		<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-87</link>
		<author>Anthony Green</author>
		<pubDate>Fri, 04 Jan 2008 13:18:33 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-87</guid>
					<description>Rebeccas right, schedules which contain offset start/end times and durations require you to deal with 'time' seperate from any concept of a date. I havaen't yet found a Ruby library that deals with these issues so in the Rails projects I roll my own special Duration class and use compsed_of to link it to the object attribute.</description>
		<content:encoded><![CDATA[<p>Rebeccas right, schedules which contain offset start/end times and durations require you to deal with &#8216;time&#8217; seperate from any concept of a date. I havaen&#8217;t yet found a Ruby library that deals with these issues so in the Rails projects I roll my own special Duration class and use compsed_of to link it to the object attribute.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Uwe Kubosch</title>
		<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-110</link>
		<author>Uwe Kubosch</author>
		<pubDate>Thu, 21 Feb 2008 09:08:15 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-110</guid>
					<description>Hi!

This is definately overdue.  I am seriously thinking of starting a project on this, but I really don't want to duplicate other efforts.

I am thinking of duplicating the design of the TimeAndMoney project on SourceForge ( http://sourceforge.net/projects/timeandmoney/ ).  It covers TimePoint, CalendarDate, TimeOfDay, Duration, intervals, and a few others.  TimePoint is equal to Time in Ruby.

The project would implement the base classes, and separate mappers for ActiveRecord.

I need help to research existing projects to avoid duplicate efforts, and testing with real-world usage.  Any developers are of course welcome to join.

Anyone interrested in participating?</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>This is definately overdue.  I am seriously thinking of starting a project on this, but I really don&#8217;t want to duplicate other efforts.</p>
<p>I am thinking of duplicating the design of the TimeAndMoney project on SourceForge ( <a href="http://sourceforge.net/projects/timeandmoney/" rel="nofollow">http://sourceforge.net/projects/timeandmoney/</a> ).  It covers TimePoint, CalendarDate, TimeOfDay, Duration, intervals, and a few others.  TimePoint is equal to Time in Ruby.</p>
<p>The project would implement the base classes, and separate mappers for ActiveRecord.</p>
<p>I need help to research existing projects to avoid duplicate efforts, and testing with real-world usage.  Any developers are of course welcome to join.</p>
<p>Anyone interrested in participating?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rebecca</title>
		<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-111</link>
		<author>Rebecca</author>
		<pubDate>Thu, 21 Feb 2008 11:07:16 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-111</guid>
					<description>I'd be interested in working with you on that, yes.</description>
		<content:encoded><![CDATA[<p>I&#8217;d be interested in working with you on that, yes.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-141</link>
		<author>Steve</author>
		<pubDate>Sat, 29 Mar 2008 00:55:48 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-141</guid>
					<description>I am *so* pleased to have stumbled across this discussion. Newbie that I am in Rails, I thought I was missing something basic. I'm trying to develop a booking application for the photo studio I work for. Most of our assignments are only a few hours long. Few span multiple days. I am happy to use a datetime object for when an assignment starts, but I'm astonished that I can't find a way to set a time exclusive of a date for when it ends. For example - a hypothetical assignment might be "Monday, May 5, 2008 from 10AM - 3:45PM". Up until the 3:45PM part a standard datetime entry in the database is perfect. But I can't believe I can't use a form helper to just set an hour/minute end time. I didn't find the "dummy date" to be 2000-01-01 though - my experiments so far seem to indicate that the current date is tacked onto the time. That means that in the example I gave above what is really being stored in the database is basically this (given that I am writing this on March 28, 2008):
"Monday, May 5, 2008 from 10AM - Friday, March 28, 2008 3:45PM"
That's nuts!
Anyway - if I'm missing something obvious maybe someone can point me in the right direction. And if in fact this is not currently implemented in Rails I sure hope Uwe and Rebecca come up with a solution pretty quickly!

Steve</description>
		<content:encoded><![CDATA[<p>I am *so* pleased to have stumbled across this discussion. Newbie that I am in Rails, I thought I was missing something basic. I&#8217;m trying to develop a booking application for the photo studio I work for. Most of our assignments are only a few hours long. Few span multiple days. I am happy to use a datetime object for when an assignment starts, but I&#8217;m astonished that I can&#8217;t find a way to set a time exclusive of a date for when it ends. For example - a hypothetical assignment might be &#8220;Monday, May 5, 2008 from 10AM - 3:45PM&#8221;. Up until the 3:45PM part a standard datetime entry in the database is perfect. But I can&#8217;t believe I can&#8217;t use a form helper to just set an hour/minute end time. I didn&#8217;t find the &#8220;dummy date&#8221; to be 2000-01-01 though - my experiments so far seem to indicate that the current date is tacked onto the time. That means that in the example I gave above what is really being stored in the database is basically this (given that I am writing this on March 28, 2008):<br />
&#8220;Monday, May 5, 2008 from 10AM - Friday, March 28, 2008 3:45PM&#8221;<br />
That&#8217;s nuts!<br />
Anyway - if I&#8217;m missing something obvious maybe someone can point me in the right direction. And if in fact this is not currently implemented in Rails I sure hope Uwe and Rebecca come up with a solution pretty quickly!</p>
<p>Steve</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: chris</title>
		<link>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-142</link>
		<author>chris</author>
		<pubDate>Wed, 02 Apr 2008 04:05:46 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2008/01/03/time-columns-and-rails/#comment-142</guid>
					<description>Thank you for explaining this!</description>
		<content:encoded><![CDATA[<p>Thank you for explaining this!</p>
]]></content:encoded>
				</item>
</channel>
</rss>
