api papi: add alias for timestamp(datetime)/timedelta 01/20801/5
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Tue, 23 Jul 2019 13:53:06 +0000 (09:53 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 31 Jul 2019 13:20:52 +0000 (13:20 +0000)
commita47a5f20a3b5bb2191d40c47fc0a9976376680c8
tree81d8f1e8a0c198f0d3b34818df99fd9ba6f8fd1e
parent07f87546c2b29ac07ec652420c8c3aef6a7faec6
api papi: add alias for timestamp(datetime)/timedelta

Now that we have support for f64:
- create explicit types for timestamp(datetime)/timedelta
- update log_details to use timestamp and remove redundant string representation.
  If you need the string representation, in python do str(timestamp).
  If you prefer the raw f64 value, the client can pass in the
  _no_type_conversion option.

Type: feature

Change-Id: I547b5fa7122d2afa12628b7db0192c23babbbae8
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/vpp-api/python/vpp_papi/vpp_format.py
src/vpp/api/api.c
src/vpp/api/vpe.api
src/vpp/api/vpe_types.api
test/test_vpe_api.py