I need a method in c# that makes me a string that look like a datetime out of a double/float.
for example
1.5 -> 01:30
2.8 -> 02:48
25.5 -> 25:30 (note: don't display as day, display full hours even its more than 24)
c++datetimefloating-point
I need a method in c# that makes me a string that look like a datetime out of a double/float.
for example
1.5 -> 01:30
2.8 -> 02:48
25.5 -> 25:30 (note: don't display as day, display full hours even its more than 24)
Best Solution
Try the following:
Or if you don't want seconds: