Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/e/l/eliot-0.3.0/eliot/tests/test_filter.py   eliot(Download)
        timestamp = int(time.time())
        dt = datetime.utcfromtimestamp(timestamp)
        message = {"timestamp": tai64n.encode(timestamp)}
        result = self.evaluateExpression("list(J['timestamp'].utctimetuple())",
                                         message)
        timestamp = int(time.time())
        dt = datetime.utcfromtimestamp(timestamp)
        message = json.dumps({"timestamp": tai64n.encode(timestamp)})
        f = BytesIO()
        EliotFilter("J", [message], f).run()