get Simple time int and str
Project description
get-datetime
get_datetime is a Python 3 Package, that returns you a time int or str.
Install
Via pypi:
$ pip install get-datetime
Manuel:
Github Repo
Documentation
Info:
Time at the Documentation: 5 June 2021 20:27:14 (8 PM)
get year int:
Code:
from get_datetime import *
print(get_date_year())
Output:
$ python main.py
2021
get month int:
Code:
from get_datetime import *
print(get_date_month())
Output:
$ python main.py
6
get day int:
Code:
from get_datetime import *
print(get_date_day())
Output:
$ python main.py
5
get Day and month str:
Code:
from get_datetime import *
print(get_date_DM("."))
Output:
$ python main.py
5.6
get Day, Month and Year str:
Code:
from get_datetime import *
print(get_date_DMY("."))
You can write any string between the brackets.
Output:
$ python main.py
5.6.2021
get Month, Day and Year str:
Code:
from get_datetime import *
print(get_date_DMY("/"))
You can write any string between the brackets.
Output:
$ python main.py
6/5/2021
get hour int:
Code:
from get_datetime import *
print(get_time_hour())
Output:
$ python main.py
20
get minute int:
Code:
from get_datetime import *
print(get_time_minute())
Output:
$ python main.py
27
get second int:
Code:
from get_datetime import *
print(get_time_second())
Output:
$ python main.py
14
get hour and minute str:
Code:
from get_datetime import *
print(get_time_HM(":"))
You can write any string between the brackets.
Output:
$ python main.py
20:27
get hour, minute and second str:
Code:
from get_datetime import *
print(get_time_HMS(":"))
You can write any string between the brackets.
Output:
$ python main.py
20:27:14
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file get_datetime-0.1.0.tar.gz.
File metadata
- Download URL: get_datetime-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a019fb61b17b367e23cb83d70f7bafcb66de48e4713dcbe010a56403b3d48e37
|
|
| MD5 |
cffc84a64ffb071e99c02733b6706775
|
|
| BLAKE2b-256 |
fd53f2ccc5790b9c29696652a90097794678ec20edfec762cb308050f80ef175
|
File details
Details for the file get_datetime-0.1.0-py3-none-any.whl.
File metadata
- Download URL: get_datetime-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bd8133d3514c6043dfd69c35d7209b9c60f3e766685b81d266ed941953cc475
|
|
| MD5 |
631212c61cd1011d255db062c3e94402
|
|
| BLAKE2b-256 |
6e644d758766d9a63ecb7bdd14866a3895d9549e65ff1d9b1126336226e2943b
|