[rt-users] Query for Created 'Last Month'?

Jean-Sebastien Morisset jsmoriss at mvlan.net
Thu Jul 3 10:46:10 EDT 2008


On Thu, Jul 03, 2008 at 05:29:46PM +0400, Ruslan Zakirov wrote:
> ok, then http://search.cpan.org/dist/Time-modules/lib/Time/ParseDate.pm
> needs patching.

What do you think of this?

# diff /usr/local/lib/perl5/site_perl/5.8.8/Time/ParseDate.pm-orig /usr/local/lib/perl5/site_perl/5.8.8/Time/ParseDate.pm
1095a1096,1100
>       # 'this' case added by jsmoriss 2008/07/03
>       } elsif ($$tr =~ s#^this\s+month(?:\s+|$ )##xi) {
>               &calc($rsr, $yr, $mr, $dr, $rdr, $now, "day", - (&righttime($now, %options))[ 3 ], %options);
>               printf "matched at %d.\n", __LINE__ if $debug;
>               return 1;

js.

> On Thu, Jul 3, 2008 at 5:17 PM, Jean-Sebastien Morisset
> <jsmoriss at mvlan.net> wrote:
>> On Thu, Jul 03, 2008 at 05:14:07PM +0400, Ruslan Zakirov wrote:
>>> Created > 'Last Month'
>> 
>> Ruslan,
>> 
>> Thanks, but that gives me this month too. :-) I tried the following,
>> just in case, but it doesn't work...
>> 
>>    Created > 'Last Month' AND Created < 'This Month'
>> 
>> js.

-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <jsmoriss at mvlan.net>



More information about the rt-users mailing list