hinnerk / py-tai64

A simple UTC => TAI converter and hex-encoded TAI (as used by DJBDNS) => UTC datetime.datetime decoder.
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

.encode()? #8

Open kseistrup opened 7 years ago

kseistrup commented 7 years ago

Shouldn't the module also have an .encode() method that takes a datetime object and returns a TAI64(n) value?

And shouldn't the .decode_tai64n() simply be called .decode(), since the context is already given by the module name?