Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrintTime doesn't check for invalid seconds after rounding #12

Open
craighanna opened this issue May 8, 2023 · 0 comments
Open

PrintTime doesn't check for invalid seconds after rounding #12

craighanna opened this issue May 8, 2023 · 0 comments

Comments

@craighanna
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant