Added examples to the README
This commit is contained in:
parent
6281e8b885
commit
361225cb08
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -1,3 +1,17 @@
|
||||||
# notime
|
# notime
|
||||||
|
|
||||||
notime is a simple python library that represents the daytime on a scale of `0` - `100000000` in a most probably mathematically inaccurate way.
|
notime is a simple python library that represents the daytime on a scale of `0` - `100000000` in a most probably mathematically inaccurate way.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
```python
|
||||||
|
>>> from notime import notime
|
||||||
|
>>> a = notime(10000)
|
||||||
|
>>> a
|
||||||
|
10000
|
||||||
|
>>> b = notime.from_time(15, 30, 0, 0)
|
||||||
|
>>> b
|
||||||
|
64583333
|
||||||
|
>>> a + b
|
||||||
|
64593333
|
||||||
|
```
|
||||||
|
|
Reference in a new issue