Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Mon, Apr 18, 2011 at 1:26 PM, David Kahn d...@structuralartistry.comwrote: On Mon, Apr 18, 2011 at 1:11 PM, Michael Pavling pavl...@gmail.comwrote: On 18 April 2011 16:38, David Kahn d...@structuralartistry.com wrote: Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread Philip Hallstrom
Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow Leopard): ruby-1.8.7-p330 :001 DateTime.now = #DateTime 2011-04-18T10:35:18-05:00 ruby-1.8.7-p330 :002 DateTime.now + 1.day = #DateTime 2247-11-07T10:35:21-05:00 I wonder if it's something along the lines of the

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 1:08 PM, Philip Hallstrom phi...@pjkh.com wrote: Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow Leopard): ruby-1.8.7-p330 :001 DateTime.now = #DateTime 2011-04-18T10:35:18-05:00 ruby-1.8.7-p330 :002 DateTime.now + 1.day = #DateTime

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread Philip Hallstrom
So, if anyone has made it this far, I guess my next question would be as to how I can confirm whether active support (in particular the file mentioned above is getting loaded). Actually if Phillip, or someone else (running Ruby 1.8.7-p334 and Rails 3.0.7 ideally on Snow Leopard mac or

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 1:25 PM, Philip Hallstrom phi...@pjkh.com wrote: So, if anyone has made it this far, I guess my next question would be as to how I can confirm whether active support (in particular the file mentioned above is getting loaded). Actually if Phillip, or someone else

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 1:36 PM, David Kahn d...@structuralartistry.comwrote: On Tue, Apr 19, 2011 at 1:25 PM, Philip Hallstrom phi...@pjkh.com wrote: So, if anyone has made it this far, I guess my next question would be as to how I can confirm whether active support (in particular the

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-19 Thread David Kahn
On Tue, Apr 19, 2011 at 2:13 PM, David Kahn d...@structuralartistry.comwrote: On Tue, Apr 19, 2011 at 1:36 PM, David Kahn d...@structuralartistry.comwrote: On Tue, Apr 19, 2011 at 1:25 PM, Philip Hallstrom phi...@pjkh.comwrote: So, if anyone has made it this far, I guess my next

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-18 Thread David Kahn
On Sat, Apr 16, 2011 at 4:37 AM, David Kahn d...@structuralartistry.comwrote: On Sat, Apr 16, 2011 at 1:01 AM, Bryan Crossland bacrossl...@gmail.comwrote: On Fri, Apr 15, 2011 at 1:56 PM, David Kahn d...@structuralartistry.comwrote: On Fri, Apr 15, 2011 at 1:50 PM, Michael Pavling

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-18 Thread Bryan Crossland
On Mon, Apr 18, 2011 at 10:38 AM, David Kahn d...@structuralartistry.comwrote: On Sat, Apr 16, 2011 at 4:37 AM, David Kahn d...@structuralartistry.comwrote: On Sat, Apr 16, 2011 at 1:01 AM, Bryan Crossland bacrossl...@gmail.comwrote: On Fri, Apr 15, 2011 at 1:56 PM, David Kahn

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-18 Thread Philip Hallstrom
This cant be so hard but feeling rather annoyed with myself for thinking I can do the following: DateTime.now + 1.day Is there any easy way to do this? I prefer to use .since and .ago: DateTime.now.since(1.day) Hmmm, I like the idea but getting an error - I am in rails

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-18 Thread Michael Pavling
On 18 April 2011 16:38, David Kahn d...@structuralartistry.com wrote: Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow Leopard): ruby-1.8.7-p330 :001 DateTime.now  = #DateTime 2011-04-18T10:35:18-05:00 ruby-1.8.7-p330 :002 DateTime.now + 1.day  = #DateTime

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-18 Thread David Kahn
On Mon, Apr 18, 2011 at 1:11 PM, Michael Pavling pavl...@gmail.com wrote: On 18 April 2011 16:38, David Kahn d...@structuralartistry.com wrote: Am still perplexed by this output (ruby 1.8.7-p330 on 64bit/Snow Leopard): ruby-1.8.7-p330 :001 DateTime.now = #DateTime

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-16 Thread Bryan Crossland
On Fri, Apr 15, 2011 at 1:56 PM, David Kahn d...@structuralartistry.comwrote: On Fri, Apr 15, 2011 at 1:50 PM, Michael Pavling pavl...@gmail.comwrote: On 15 April 2011 19:41, David Kahn d...@structuralartistry.com wrote: This cant be so hard but feeling rather annoyed with myself for

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-16 Thread David Kahn
On Sat, Apr 16, 2011 at 1:01 AM, Bryan Crossland bacrossl...@gmail.comwrote: On Fri, Apr 15, 2011 at 1:56 PM, David Kahn d...@structuralartistry.comwrote: On Fri, Apr 15, 2011 at 1:50 PM, Michael Pavling pavl...@gmail.comwrote: On 15 April 2011 19:41, David Kahn

[Rails] DateTime + x.days, x.minutes and the like?

2011-04-15 Thread David Kahn
This cant be so hard but feeling rather annoyed with myself for thinking I can do the following: DateTime.now + 1.day ... and getting the expected result, which would *not* be (but is): ruby-1.8.7-p330 :055 DateTime.now + 1.day = #DateTime 2247-11-04T13:24:19-05:00 Or ruby-1.8.7-p330 :056

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-15 Thread Michael Pavling
On 15 April 2011 19:41, David Kahn d...@structuralartistry.com wrote: This cant be so hard but feeling rather annoyed with myself for thinking I can do the following: DateTime.now + 1.day Is there any easy way to do this? I prefer to use .since and .ago: DateTime.now.since(1.day) -- You

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-15 Thread David Kahn
On Fri, Apr 15, 2011 at 1:50 PM, Michael Pavling pavl...@gmail.com wrote: On 15 April 2011 19:41, David Kahn d...@structuralartistry.com wrote: This cant be so hard but feeling rather annoyed with myself for thinking I can do the following: DateTime.now + 1.day Is there any easy way