Commit 9d79fec8 authored by Pavel Machek's avatar Pavel Machek

Added notion of datetime

parent 6bd08d01
......@@ -30,6 +30,7 @@ CF_DECLS
struct filter *f;
struct f_tree *e;
struct f_val v;
struct password_item *p;
}
%token END
......@@ -38,7 +39,7 @@ CF_DECLS
%token <s> SYM
%token <t> TEXT
%type <i> expr bool pxlen
%type <i> expr bool pxlen datetime
%nonassoc '=' '<' '>' '~' ELSE IF '.'
%left '+' '-'
......@@ -108,6 +109,10 @@ pxlen:
}
;
datetime: /* Return seconds from epoch, FIXME we want be more user friendly */
NUM { $$ = $1; }
;
CF_CODE
CF_END
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment