Source

hours2days /

Filename Size Date modified Message
1.5 KB
687 B
3.1 KB
121 B

hours2days

A simple command line tool to convert hours to days.

Usage

You can either use the command line tool or the Python function.

$ ./hours2days.py 2
0.25
$ ./hours2days.py 8
1.0
$ ./hours2days.py 24 30
3.06
$ ./hours2days.py 24 -b 6
4.0
$ ./hours2days.py 14 27 -p 0
1.80625
>>> from hours2days import hours2days
>>> hours2days(2)
0.25
>>> hours2days(8)
1.0
>>> hours2days(24, 30)
3.0625
>>> hours2days(24, base=6)
4.0
>>> hours2days(12, 45)
1.59375
>>> hours2days(24, 30, precision=2)
3.06
>>> hours2days(16, 15, base=4, precision=3)
4.063