python-time-functions 2.4.0__tar.gz → 2.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_time_functions-2.4.0/src/python_time_functions.egg-info → python_time_functions-2.5.0}/PKG-INFO +16 -12
- python_time_functions-2.5.0/README.md +35 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/pyproject.toml +1 -1
- {python_time_functions-2.4.0 → python_time_functions-2.5.0/src/python_time_functions.egg-info}/PKG-INFO +16 -12
- python_time_functions-2.4.0/README.md +0 -31
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/LICENSE +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/setup.cfg +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/src/python_time_functions/__init__.py +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/src/python_time_functions/time_functions.py +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/src/python_time_functions.egg-info/SOURCES.txt +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/src/python_time_functions.egg-info/dependency_links.txt +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/src/python_time_functions.egg-info/top_level.txt +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/tests/test_time_function_sanitizer.py +0 -0
- {python_time_functions-2.4.0 → python_time_functions-2.5.0}/tests/test_time_functions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python_time_functions
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Common Python functions for time handling
|
|
5
5
|
Author-email: Corne Bester <corne.bester@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://example.com
|
|
@@ -17,30 +17,34 @@ Dynamic: license-file
|
|
|
17
17
|
|
|
18
18
|
Common Python functions for time handling
|
|
19
19
|
|
|
20
|
+
```shell
|
|
21
|
+
pip install --upgrade python_time_functions
|
|
22
|
+
```
|
|
23
|
+
|
|
20
24
|
```python
|
|
21
25
|
from datetime import datetime, timezone
|
|
22
|
-
|
|
23
|
-
import time_functions.time_functions as time_functions
|
|
24
|
-
# OR
|
|
25
|
-
from time_functions.time_functions import get_timestamp_unix_millis
|
|
26
|
+
from python_time_functions import time_functions as tf
|
|
26
27
|
|
|
27
28
|
timestamp = datetime.now(timezone.utc)
|
|
28
|
-
unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
|
|
29
|
+
unix_millis = tf.get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
|
|
29
30
|
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
## local dev
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
```shell
|
|
36
|
+
pip install -r requirements.txt
|
|
37
|
+
```
|
|
36
38
|
|
|
37
39
|
## test
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
```shell
|
|
42
|
+
pytest
|
|
43
|
+
```
|
|
41
44
|
|
|
42
45
|
### other
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
```shell
|
|
48
|
+
pip3 freeze > requirements.txt
|
|
49
|
+
```
|
|
46
50
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Readme
|
|
2
|
+
|
|
3
|
+
Common Python functions for time handling
|
|
4
|
+
|
|
5
|
+
```shell
|
|
6
|
+
pip install --upgrade python_time_functions
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```python
|
|
10
|
+
from datetime import datetime, timezone
|
|
11
|
+
from python_time_functions import time_functions as tf
|
|
12
|
+
|
|
13
|
+
timestamp = datetime.now(timezone.utc)
|
|
14
|
+
unix_millis = tf.get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## local dev
|
|
19
|
+
|
|
20
|
+
```shell
|
|
21
|
+
pip install -r requirements.txt
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## test
|
|
25
|
+
|
|
26
|
+
```shell
|
|
27
|
+
pytest
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### other
|
|
31
|
+
|
|
32
|
+
```shell
|
|
33
|
+
pip3 freeze > requirements.txt
|
|
34
|
+
```
|
|
35
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python_time_functions
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Common Python functions for time handling
|
|
5
5
|
Author-email: Corne Bester <corne.bester@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://example.com
|
|
@@ -17,30 +17,34 @@ Dynamic: license-file
|
|
|
17
17
|
|
|
18
18
|
Common Python functions for time handling
|
|
19
19
|
|
|
20
|
+
```shell
|
|
21
|
+
pip install --upgrade python_time_functions
|
|
22
|
+
```
|
|
23
|
+
|
|
20
24
|
```python
|
|
21
25
|
from datetime import datetime, timezone
|
|
22
|
-
|
|
23
|
-
import time_functions.time_functions as time_functions
|
|
24
|
-
# OR
|
|
25
|
-
from time_functions.time_functions import get_timestamp_unix_millis
|
|
26
|
+
from python_time_functions import time_functions as tf
|
|
26
27
|
|
|
27
28
|
timestamp = datetime.now(timezone.utc)
|
|
28
|
-
unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
|
|
29
|
+
unix_millis = tf.get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
|
|
29
30
|
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
## local dev
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
```shell
|
|
36
|
+
pip install -r requirements.txt
|
|
37
|
+
```
|
|
36
38
|
|
|
37
39
|
## test
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
```shell
|
|
42
|
+
pytest
|
|
43
|
+
```
|
|
41
44
|
|
|
42
45
|
### other
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
```shell
|
|
48
|
+
pip3 freeze > requirements.txt
|
|
49
|
+
```
|
|
46
50
|
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Readme
|
|
2
|
-
|
|
3
|
-
Common Python functions for time handling
|
|
4
|
-
|
|
5
|
-
```python
|
|
6
|
-
from datetime import datetime, timezone
|
|
7
|
-
|
|
8
|
-
import time_functions.time_functions as time_functions
|
|
9
|
-
# OR
|
|
10
|
-
from time_functions.time_functions import get_timestamp_unix_millis
|
|
11
|
-
|
|
12
|
-
timestamp = datetime.now(timezone.utc)
|
|
13
|
-
unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## local dev
|
|
18
|
-
|
|
19
|
-
pip install -r requirements.txt
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## test
|
|
23
|
-
|
|
24
|
-
pytest
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### other
|
|
28
|
-
|
|
29
|
-
pip3 freeze > requirements.txt
|
|
30
|
-
|
|
31
|
-
|
|
File without changes
|
|
File without changes
|
{python_time_functions-2.4.0 → python_time_functions-2.5.0}/src/python_time_functions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_time_functions-2.4.0 → python_time_functions-2.5.0}/tests/test_time_function_sanitizer.py
RENAMED
|
File without changes
|
|
File without changes
|