PrintTime doesn't check for invalid seconds after rounding
craighanna opened this issue · 0 comments
craighanna commented
I can get PrintTime to write a time with 60 in the seconds field, instead of rolling over to 1 minute and 0 seconds.
>>> import gnsstk
>>> ct = gnsstk.CommonTime()
>>> ct = ct.set(2459313,59,0.9999999999)
>>> print(gnsstk.printTime(ct,'%02d-%b-%Y %02H:%02M:%012.9f %P'))
08-Apr-2021 00:00:60.000000000 UNK