Daniel Liebig wrote:
> Hi,
>
> i'm trying to get the last day of a month with chronic. Since chronic 
> seems to use 'last' as keyword in a sence like "back from now" this 
> does't give a result
>
> Chronic.parse("last day of this month")
>
> i tried also 'latest' and 'end' instead of 'last' with no result. I 
> couldn't find an appropriate example in the documentation 
> http://chronic.rubyforge.org/ , neither i could find an exact 
> documentation of all valid keywords.
>
> Any hints?
>
> Thx for any help
> Regards
> Daniel
>
>
Chronic.parse('1 day before next month', {:guess => false})
=> Wed Jan 31 00:00:00 -0800 2007..Wed Feb 28 00:00:00 -0800 2007

Chronic.parse('1 day before next month', {:guess => false}).begin
=> Wed Jan 31 00:00:00 -0800 2007

Which is a little weird because generally you're not asking for 
distances in smaller units than the anchor, but it still works. =)

Tom