date-formatter-spcm 0.0.1__py3-none-any.whl

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 @@
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,6 @@
1
+ date_formatter/__init__.py,sha256=Wmv2CmIfn0g2mr_DJsp6SVXFY-fPHpV2f48FrZGdb-c,94
2
+ date_formatter/logic.py,sha256=rnW2JulFQQTFSKaRq2H8nJR9Ak-xk3iqfU7MMuAFPWg,733
3
+ date_formatter_spcm-0.0.1.dist-info/METADATA,sha256=p0DG7fVPnCb0HlVK2Ml3TMAwhbuN6jRGTCKZXeISxD4,405
4
+ date_formatter_spcm-0.0.1.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
5
+ date_formatter_spcm-0.0.1.dist-info/top_level.txt,sha256=sFbyeUZx_Asnu-Gh49eC5SKcScvv2E_ugy7K3CupWuo,15
6
+ date_formatter_spcm-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ date_formatter