mxtommy / Kip

SignalK Instrument package
MIT License
78 stars 41 forks source link

Conversion of seconds to HH:MM:SS loses sign #478

Open RhumbRunner opened 4 days ago

RhumbRunner commented 4 days ago

I have a Race Start Plugin I'm developing. It calculates your time and distance to the line. If you are early it generates a POSITIVE time called "TIME TO BURN" in seconds and if you are late it generates a NEGATIVE time. This time is in seconds and I use the standard kip dropdown for units to convert it to HH:MM:SS.

The issue lies in that the conversion only results in a POSITIVE time value displayed. All other choices for time conversion retains the NEGATIVE sign.

Thanks -- Chuck

image image

godind commented 2 days ago

I don't remember if it's a custom function or a library I'd need to look into it. Will be while.

Have you looked at the existing start timer? Curious the know what's missing. It's designed around what most start hardware device do.