[rt-users] Relative Dates in Search

Hans Dieter Pearcey hdp.rt.users at weftsoar.net
Thu Feb 26 11:34:32 EST 2009


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.



More information about the rt-users mailing list