sot / chandra_time

Convert between various time formats relevant to Chandra.
https://sot.github.io/Chandra.Time
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Allow bytes input to date2secs #53

Closed taldcroft closed 2 years ago

taldcroft commented 2 years ago

Description

This allows bytes input to the date2secs function. Note that it does NOT allow bytes to be used to initialize a DateTime object. I tried that and things went badly wrong for reasons that were not immediately obvious.

The driver here is ensuring that date2secs will work with kadi commands archive v2, see https://github.com/sot/kadi/pull/212#issuecomment-1079129159.

Testing