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
get_datetime-0.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for get_datetime-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd8133d3514c6043dfd69c35d7209b9c60f3e766685b81d266ed941953cc475 |
|
MD5 | 631212c61cd1011d255db062c3e94402 |
|
BLAKE2b-256 | 6e644d758766d9a63ecb7bdd14866a3895d9549e65ff1d9b1126336226e2943b |