Skip to content

Commit

Permalink
Changed: sample codes updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersulyok committed Mar 3, 2024
1 parent 893f419 commit 9090fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diskinfo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ def time_in_hrf(time: int, unit: int = 0, short_format: bool = False) -> Tuple[f
An example about the use of the function::
>>> from diskinfo import *
>>> hours=6517
>>> hours = 6517
>>> t, u = time_in_hrf(hours, unit=2)
>>> print(f"{t:.1f} {u}")
271.5 day
>>> days=2401
>>> days = 2401
>>> t, u = time_in_hrf(hours, unit=3, short_format=True)
>>> print(f"{t:.1f} {u}")
6.6 yr
Expand Down

0 comments on commit 9090fdb

Please sign in to comment.