From 9f472fa871288a6b381eb17b21db8092c4b42a26 Mon Sep 17 00:00:00 2001 From: Dennis Ju Date: Thu, 6 Aug 2015 12:58:28 -0700 Subject: [PATCH] Add support for millisecond timestamps --- workflow/process.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workflow/process.py b/workflow/process.py index 88dcf72..6333dde 100644 --- a/workflow/process.py +++ b/workflow/process.py @@ -21,6 +21,8 @@ def parse_query_value(query_str): else: # Parse datetime string or timestamp try: + if query_str.isdigit() and len(query_str) == 13: + query_str = query_str[:10] + '.' + query_str[10:] d = epoch(float(query_str)) except ValueError: d = parse(str(query_str))