MartijnBraam / python-isc-dhcp-leases

Small python module for reading /var/lib/dhcp/dhcpd.leases from isc-dhcp-server
MIT License
123 stars 47 forks source link

Handle epoch timestamps in dhcpd.leases #26

Closed cacoyle closed 6 years ago

cacoyle commented 6 years ago

https://www.isc.org/wp-content/uploads/2017/08/dhcp43leases.html

If the db-time-format was configured to local, then the date fields appear as follows:

epoch ; #

::
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 033630582da268f77c1ecbcc164fd7d0f1626909 on cacoyle:fix/time-format into dc513ea124565d77a7a5bde742ec0a8ffb877fd4 on MartijnBraam:master.

MartijnBraam commented 6 years ago

Looks good, the comment handleing is a little wonky but it should work since its a fixed format.