Create time filter as longs when sending to ES