Thanks for your help, Charles. I appreciate it.
What I want is the duration needed to complete a specific task. So when
I have a lot of tasks, I will be able to search tasks width its
durations is bigger that 2 hours and 10 minutes, for example. I don’t
care about days, monts of yearsM I only need the duration.
So, should I use a Datetime in order to make search easy?
Again, thanks a lot.
Charles J. wrote:
On Fri, Mar 13, 2009 at 8:00 AM, John S. <
[email protected]> wrote:
I think that select_hour(0) and select_minute(0) it’s what I need. I
just want to save the time it’s needed to complete a task, so I only
need to select and hour and minutes. How should I save this? Like a
string or like a datetime? I think it would b better datetime, because I
want to search by this time. But then I think I should need to create a
datetable using two fields, select_hour and select_minute. Is it
As I said, this depends on what you are wanting to record. For me, if I
interested in something like “On this date I worked on task-1 for 3
and 37 minutes, and task-2 for 2 hours and 7 minutes” I would be
a date, and then I would convert “hours” and “minutes” to just minutes
hours and 37 minutes = 217 minutes) and save the date and the total
All of the Date, DateTime, and Time objects in ruby are related to a
calendar, i.e., the want a date and a specific time, not a date and a
duration, which seems to me what you are after. Make sense?