date-formatter-spcm 0.0.1__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,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: date_formatter_spcm
3
+ Version: 0.0.1
4
+ Summary: A simple package to format dates easily
5
+ Author-email: Sara Czasak <sara.p.czasak.m@gmail.com>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
11
+
12
+ # Date Formatter
@@ -0,0 +1 @@
1
+ # Date Formatter
@@ -0,0 +1 @@
1
+ from .logic import get_pretty_date, dd_mm_yyyy, mm_dd_yyyy, slash_dd_mm_yyyy, slash_mm_dd_yyyy
@@ -0,0 +1,26 @@
1
+ from datetime import datetime
2
+
3
+
4
+ def get_pretty_date():
5
+ """Returns the current date in 'Day, Month Date, Year' format."""
6
+ return datetime.now().strftime("%A, %B %d, %Y")
7
+
8
+
9
+ def dd_mm_yyyy():
10
+ """Returns the current date in 'Day-Month-Year' format."""
11
+ return datetime.now().strftime("%d-%m-%Y")
12
+
13
+
14
+ def mm_dd_yyyy():
15
+ """Returns the current date in 'Month-Day-Year' format."""
16
+ return datetime.now().strftime("%m-%d-%Y")
17
+
18
+
19
+ def slash_dd_mm_yyyy():
20
+ """Returns the current date in 'Day/Month/Year' format."""
21
+ return datetime.now().strftime("%d/%m/%Y")
22
+
23
+
24
+ def slash_mm_dd_yyyy():
25
+ """Returns the current date in 'Month/Day/Year' format."""
26
+ return datetime.now().strftime("%m/%d/%Y")
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: date_formatter_spcm
3
+ Version: 0.0.1
4
+ Summary: A simple package to format dates easily
5
+ Author-email: Sara Czasak <sara.p.czasak.m@gmail.com>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
11
+
12
+ # Date Formatter
@@ -0,0 +1,12 @@
1
+ README.md
2
+ pyproject.toml
3
+ date_format_helper_package/src/date_formatter_spcm.egg-info/PKG-INFO
4
+ date_format_helper_package/src/date_formatter_spcm.egg-info/SOURCES.txt
5
+ date_format_helper_package/src/date_formatter_spcm.egg-info/dependency_links.txt
6
+ date_format_helper_package/src/date_formatter_spcm.egg-info/top_level.txt
7
+ date_format_helper_package/src/date_formatter/__init__.py
8
+ date_format_helper_package/src/date_formatter/logic.py
9
+ date_format_helper_package/src/date_formatter_spcm.egg-info/PKG-INFO
10
+ date_format_helper_package/src/date_formatter_spcm.egg-info/SOURCES.txt
11
+ date_format_helper_package/src/date_formatter_spcm.egg-info/dependency_links.txt
12
+ date_format_helper_package/src/date_formatter_spcm.egg-info/top_level.txt
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "date_formatter_spcm"
7
+ version = "0.0.1"
8
+ authors = [
9
+ { name="Sara Czasak", email="sara.p.czasak.m@gmail.com" },
10
+ ]
11
+ description = "A simple package to format dates easily"
12
+ readme = "README.md"
13
+ requires-python = ">=3.7"
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ ]
19
+
20
+ [tool.setuptools.packages.find]
21
+ where = ["date_format_helper_package/src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+