you could use ints for both... ruby Time.wday will give you the day of week, with Sunday being 0
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to know the current weekday? | 3 | 130 | June 5, 2009 | |
how to get day name using ActiveSupport libraries | 2 | 191 | July 25, 2008 | |
Idiomatic way to do a non-database Enumeration? | 4 | 120 | August 24, 2007 | |
day of given week | 1 | 98 | September 17, 2007 | |
Modify beginning_of_week? | 0 | 88 | February 27, 2009 |