Re: Range of Dates

2018-05-06 Thread JJ Merelo
Can you all take this interesting question to StackOverflow too? Thanks! El sáb., 5 may. 2018 a las 21:57, Sean McAfee () escribió: > On Wed, May 2, 2018 at 3:44 AM, Elizabeth Mattijsen > wrote: > >> Getting back to maybe your original question: if you want the date 7 days >> from now, you can j

Re: Range of Dates

2018-05-05 Thread Sean McAfee
On Wed, May 2, 2018 at 3:44 AM, Elizabeth Mattijsen wrote: > Getting back to maybe your original question: if you want the date 7 days > from now, you can just use integer arithmetic: > > $ 6 'say Date.today + 7' > 2018-05-09 > Oh, I knew that; that was just an example. My actual code involved

Re: Range of Dates

2018-05-02 Thread Elizabeth Mattijsen
> On 1 May 2018, at 22:02, Sean McAfee wrote: > > Today I wanted to write an infinite sequence of Dates starting from today, > but I accidentally wrote two dots instead of three as I'd intended. I was > surprised to find that it seems to work as one might expect, eg: > > (Date.today .. *