def eval_function(value):
name, args = value[<NUM_LIT:0>], value[<NUM_LIT:1>:]<EOL>if name == "<STR_LIT>":<EOL><INDENT>return datetime.utcnow().replace(tzinfo=tzutc())<EOL><DEDENT>elif name in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>return parse(unwrap(args[<NUM_LIT:0>])).replace(tzinfo=tzlocal())<EOL><DEDENT>elif name in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>return parse(unwrap(args[<NUM_LIT:0>])).replace(tzinfo=tzutc())<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>return <NUM_LIT:1000> * resolve(args[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>raise SyntaxError("<STR_LIT>" % name)<EOL><DEDENT>
Evaluate a timestamp function