User: Password:
|
|
Subscribe / Log in / New account

Conversion

Conversion

Posted Mar 13, 2014 9:58 UTC (Thu) by l0b0 (subscriber, #80670)
Parent article: A false midnight

What does "converting it to minutes" even mean? Three obvious possibilities are

hours * 60 + minutes (integer)
hours * 60 + minutes + seconds / float(60)
hours * 60 + minutes + seconds / float(60) + fractional_seconds / float(60)

The second interpretation would make errors 60 times less likely to occur, and if the fractional seconds are taken into account the probability is very small indeed. The documentation does not mention how the conversion is done.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds