python-time-functions 2.2.0__tar.gz → 2.4.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python_time_functions
3
- Version: 2.2.0
3
+ Version: 2.4.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
@@ -20,9 +20,9 @@ Common Python functions for time handling
20
20
  ```python
21
21
  from datetime import datetime, timezone
22
22
 
23
- import time_functions
23
+ import time_functions.time_functions as time_functions
24
24
  # OR
25
- from time_functions import get_timestamp_unix_millis
25
+ from time_functions.time_functions import get_timestamp_unix_millis
26
26
 
27
27
  timestamp = datetime.now(timezone.utc)
28
28
  unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
@@ -5,9 +5,9 @@ Common Python functions for time handling
5
5
  ```python
6
6
  from datetime import datetime, timezone
7
7
 
8
- import time_functions
8
+ import time_functions.time_functions as time_functions
9
9
  # OR
10
- from time_functions import get_timestamp_unix_millis
10
+ from time_functions.time_functions import get_timestamp_unix_millis
11
11
 
12
12
  timestamp = datetime.now(timezone.utc)
13
13
  unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python_time_functions"
7
- version = "2.2.0"
7
+ version = "2.4.0"
8
8
  description = "Common Python functions for time handling"
9
9
  requires-python = ">=3.10"
10
10
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python_time_functions
3
- Version: 2.2.0
3
+ Version: 2.4.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
@@ -20,9 +20,9 @@ Common Python functions for time handling
20
20
  ```python
21
21
  from datetime import datetime, timezone
22
22
 
23
- import time_functions
23
+ import time_functions.time_functions as time_functions
24
24
  # OR
25
- from time_functions import get_timestamp_unix_millis
25
+ from time_functions.time_functions import get_timestamp_unix_millis
26
26
 
27
27
  timestamp = datetime.now(timezone.utc)
28
28
  unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
@@ -1,11 +1,11 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
+ src/python_time_functions/__init__.py
5
+ src/python_time_functions/time_functions.py
4
6
  src/python_time_functions.egg-info/PKG-INFO
5
7
  src/python_time_functions.egg-info/SOURCES.txt
6
8
  src/python_time_functions.egg-info/dependency_links.txt
7
9
  src/python_time_functions.egg-info/top_level.txt
8
- src/time_functions/__init__.py
9
- src/time_functions/time_functions.py
10
10
  tests/test_time_function_sanitizer.py
11
11
  tests/test_time_functions.py
@@ -1,4 +1,4 @@
1
- import src.time_functions.time_functions as time_functions
1
+ import src.python_time_functions.time_functions as time_functions
2
2
 
3
3
 
4
4
  def test_convertions_from_sample24():
@@ -1,5 +1,5 @@
1
1
  from datetime import datetime, timezone
2
- import src.time_functions.time_functions as time_functions
2
+ import src.python_time_functions.time_functions as time_functions
3
3
 
4
4
 
5
5
  new_obj = datetime.now(timezone.utc)