I have a Python datetime, d, and I want to get the number of hours since midnight as a floating point number. The best I've come up with is:I have a Python datetime, d, and I want to get
I have a Python datetime, d, and I want to get the number of hours since midnight as a floating point number. The best I've come up with is:I have a Python datetime, d, and I want to get