[rt-users] Relative Dates in Search

Cassandra Phillips-Sears cassandra at bestpractical.com
Thu Feb 26 12:10:35 EST 2009


Thanks Hans!
--
Cassandra Phillips-Sears
cassandra at bestpractical.com

Office Manager
Best Practical Solutions, LLC
http://www.bestpractical.com

On Feb 26, 2009, at 11:34 AM 2/26/09, Hans Dieter Pearcey wrote:

> On Thu, Feb 26, 2009 at 11:36:57AM -0500, Cassandra Phillips-Sears  
> wrote:
>> It looks like you can get it down to 1 week in either direction,  
>> but I
>> don't know how it would be adapted to show something like "two weeks
>> ago" or "the week before last week," though.
>
> Use numerals instead of words for numbers.
>
> % perl -MTime::ParseDate -le 'print for scalar localtime, scalar  
> localtime Time::ParseDate::parsedate("2 weeks ago")'
> Thu Feb 26 11:33:52 2009
> Thu Feb 12 11:33:52 2009
>
> hdp.
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com




More information about the rt-users mailing list