Philip Hallstrom wrote in post #937228:

Just for the sake of argument... how about the time it takes runners to
finish a marathon? Sure you could use seconds as an integer field, but
time without date make sense...
I'm currently developing application, where I need to store beginning
date (date only, without time) and amount of time passed.

I found a gem, that deals with 'time without date' issue:
https://github.com/lailsonbm/time_of_day

It can be useful in some cases.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 26, '12 at 7:43a
activeOct 26, '12 at 3:26p
posts3
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

KlausG: 1 post Denis P.: 1 post Zhi-Qiang Lei: 1 post

People

Translate

site design / logo © 2022 Grokbase