added metadata to DateMath.pm

master
Dylan Lloyd 2012-11-06 16:01:09 -05:00
parent 8d44b5f6d7
commit 3a5cb91705
1 changed files with 10 additions and 0 deletions

View File

@ -10,6 +10,16 @@ triggers any => qw( plus minus + - );
zci is_cached => 1;
zci answer_type => 'date_math';
primary_example_queries 'Jan 1 2012 plus 32 days';
secondary_example_queries '1/1/2012 plus 5 months', 'January first minus ten days';
description 'calculate the date with an offset';
name 'DateMath';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/DateMath.pm';
category 'time_sensitive';
topics 'everyday_goodies';
attribution github => ['http://github.com/cj01101', 'cj01101'];
handle query_lc => sub {
my @param = split /\s+/;
return unless @param >= 4;