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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.