dt-better 0.1.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.
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: dt-better
3
+ Version: 0.1.0
4
+ Summary: A lightweight Python wrapper for datetime
5
+ Author-email: SquigglesYT <benjaminmcdade5@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/SquigglesYT/dt-better
8
+ Keywords: datetime,date,time,utility,shortcuts
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
+ Requires-Python: >=3.8
16
+ Description-Content-Type: text/markdown
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: dt-better
3
+ Version: 0.1.0
4
+ Summary: A lightweight Python wrapper for datetime
5
+ Author-email: SquigglesYT <benjaminmcdade5@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/SquigglesYT/dt-better
8
+ Keywords: datetime,date,time,utility,shortcuts
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
+ Requires-Python: >=3.8
16
+ Description-Content-Type: text/markdown
@@ -0,0 +1,6 @@
1
+ dt_better.py
2
+ pyproject.toml
3
+ dt_better.egg-info/PKG-INFO
4
+ dt_better.egg-info/SOURCES.txt
5
+ dt_better.egg-info/dependency_links.txt
6
+ dt_better.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ dt_better
@@ -0,0 +1,43 @@
1
+ from datetime import date, datetime, timedelta
2
+
3
+ def now():
4
+ return datetime.now()
5
+
6
+ def current_date():
7
+ return date.today()
8
+
9
+ def current_time():
10
+ return now().time()
11
+
12
+ def current_time_without_seconds():
13
+ return now().strftime("%H:%M")
14
+
15
+ def current_month():
16
+ return now().strftime("%B")
17
+
18
+ def current_month_number():
19
+ return now().month
20
+
21
+ def current_day_of_month():
22
+ return now().day
23
+
24
+ def current_year():
25
+ return now().year
26
+
27
+ def current_day_of_week():
28
+ return now().strftime("%A")
29
+
30
+ def current_hour():
31
+ return now().hour
32
+
33
+ def current_minute():
34
+ return now().minute
35
+
36
+ def current_second():
37
+ return now().second
38
+
39
+ def yesterday():
40
+ return date.today() - timedelta(days=1)
41
+
42
+ def tomorrow():
43
+ return date.today() + timedelta(days=1)
@@ -0,0 +1,30 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "dt-better"
7
+ version = "0.1.0"
8
+ authors = [
9
+ { name="SquigglesYT", email="benjaminmcdade5@gmail.com" },
10
+ ]
11
+ description = "A lightweight Python wrapper for datetime"
12
+ readme = "README.md"
13
+ requires-python = ">=3.8"
14
+ license = {text = "MIT"}
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: OS Independent",
19
+ "Development Status :: 3 - Alpha",
20
+ "Intended Audience :: Developers",
21
+ "Topic :: Software Development :: Libraries :: Python Modules",
22
+ ]
23
+ keywords = ["datetime", "date", "time", "utility", "shortcuts"]
24
+ dependencies = []
25
+
26
+ [project.urls]
27
+ Homepage = "https://github.com/SquigglesYT/dt-better"
28
+
29
+ [tool.setuptools]
30
+ py-modules = ["dt_better"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+