🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

libdev

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libdev - pypi Package Compare versions

Comparing version
0.94
to
0.95
+1
-1
libdev.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: libdev
Version: 0.94
Version: 0.95
Summary: Set of standard functions for development

@@ -5,0 +5,0 @@ Home-page: https://github.com/chilleco/lib

@@ -5,4 +5,4 @@ """

__version__ = "0.94"
__version__ = "0.95"
__all__ = ("__version__",)

@@ -383,1 +383,7 @@ """

return int(next_month.timestamp())
def get_delta_days(start, end, digits=0):
"""Get the number of days between two timestamps"""
delta = round((end - start) / (24 * 60 * 60), digits)
return delta if delta % 1 else int(delta)
Metadata-Version: 2.1
Name: libdev
Version: 0.94
Version: 0.95
Summary: Set of standard functions for development

@@ -5,0 +5,0 @@ Home-page: https://github.com/chilleco/lib

@@ -18,2 +18,3 @@ """

get_next_month,
get_delta_days,
)

@@ -132,1 +133,9 @@

assert get_next_month(1703970000, tz=3) == 1704056400
def test_get_delta_days():
assert get_delta_days(1756670400, 1759262400) == 30
assert isinstance(get_delta_days(1756670400, 1759262400, 0), int)
assert isinstance(get_delta_days(1756670400, 1759262401, 1), int)
assert isinstance(get_delta_days(1756670400, 1759262401, 0), int)
assert isinstance(get_delta_days(1756670400, 1759263511, 2), float)