Commit f3b4d40
committed
Make methods in times available at the top level of human_readable
This is a fix for #526. This makes methods in times available at the top level of human_readable.
Until now, `date_time` and `precise_delta` were imported, but the following methods were not available -- contrary to the content of the documentation.
- time_delta
- time_of_day
- timing
- year
- day
- date
This PR makes these methods available at the top level of human_readable.
It's just adding them to `__all__` in `human_readable/__init__.py`.
# result
```python
>>> import human_readable
>>> human_readable.time_delta
<function time_delta at 0x1007bf420>
>>>
```1 parent b2a206b commit f3b4d40
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| 25 | + | |
19 | 26 | | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
29 | 41 | | |
0 commit comments