SGL-UT / gnsstk

The goal of the gnsstk project is to provide an open source library to the satellite navigation community--to free researchers to focus on research, not lower level coding.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrintTime doesn't check for invalid seconds after rounding

craighanna opened this issue · comments

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