search for: next_week

Displaying 6 results from an estimated 6 matches for "next_week".

2006 Oct 24
13
How can my boss take rails seriously with bugs like this?
The Time::next_week method is supposed to give the time of the start of the next week. But look at this, it cocks up : >> t=Time.parse "Monday October 16th 2006" => Mon Oct 16 00:00:00 BST 2006 >> t.next_week => Mon Oct 23 00:00:00 BST 2006 >> t.next_week.next_week => Tue Oct 24...
2006 Jul 05
1
time.next_week bug?
i ran into an error today when dealing with the method next_week and daylight savings time... >> Time.local( 2006,10,23 ).next_week => Tue Oct 24 00:00:00 EDT 2006 Any one know if this is a know issue or should a ticket be created for this issue? thanks for the help mark -- Mark Van Holstyn mvette13@gmail.com http://lotswholetime.com -------------...
2006 Apr 25
1
Array of dates/times from time.now till nextweek
Hi, I would like to make @dates in my controller. I tried the following: startdate = Time.now enddate = startdate.next_week for enddate > startdate @dates << startdate startdate = startdate.tomorrow end But I get an errormessage when I check the syntax: "warning: useless use of a variable in void context" Anyone? Thanks! Steven. -- Posted via http://www.ruby-forum.com/.
2006 Mar 01
3
Convert Date to Time
Hi, How do i convert a Date to a Time?? I have a date returned from sql and i need to be able to use handy functions like next_week or beggining of week. Any help appreciated Thanks, Chris -- Posted via http://www.ruby-forum.com/.
2006 Mar 18
1
Date formatting and adding question
Hey all, I''m working on a site for a client that has a scedule im trying to display that pulls the next events for the upcoming Sunday from a MySQL table....The table stores the event date as mm/dd/yyyy. I''ve tried to think of everyway possible to get this thing to change after every sunday to show the next sunday''s events, but I end up doing it manually... Is it
2007 Sep 06
2
HABTM Loops
So, I have a "schedules" table and a "hours" table, joined by a "hours_schedules" table. Think of the hours table as a category for when people will schedule themselves to work, which happens in weekly increments. At any given hour, there will be X number of people working. I need to represent each worker with an asterisk symbol in the weekly view. For example,