Python Date Tools
Project description
datedays
What can it do?
- 1. Get common date data
- 2. Operating excel report
- 3. Perform common encryption signature
- 4. Obtain the encrypted signature of the file
- 5. Other
datedays is available on PyPI:
$ pip install datedays
for example:
import datedays
if __name__ == '__main__':
print('now :', datedays.getnow()) # format_=Format such as:%Y-%m-%d %H:%M:%S
print('-' * 30)
print('tomorrow:', datedays.gettomorrow())
print('the day after tomorrow:', datedays.gettomorrow(days=2)) # Days is the number of days
print('after 30 days:', datedays.gettomorrow(days=30))
print('after 180 days:', datedays.gettomorrow(days=180))
print('after 1000 days:', datedays.gettomorrow(days=1000))
print('-' * 30)
print('yesterday:', datedays.getyesterday())
print('the day before yesterday:', datedays.getyesterday(days=2))
print('180 days ago:', datedays.getyesterday(days=180))
print('1000 days ago:', datedays.getyesterday(days=1000))
now : 2022-08-19 15:13:44
------------------------------
tomorrow: 2022-08-20
the day after tomorrow: 2022-08-21
after 30 days: 2022-09-18
after 180 days: 2023-02-15
after 1000 days: 2025-05-15
------------------------------
yesterday: 2022-08-18
the day before yesterday: 2022-08-17
180 days ago: 2022-02-20
1000 days ago: 2019-11-23
Still updating
1. Get common date data
2. Operate excel report
3. Perform common encryption signature
4. Obtain the encrypted signature of the file
Other...
For Example
all dates within 2 days to 10 days
import datedays
if __name__ == '__main__':
print(datedays.getdays()[2:10])
output
['2022-08-11', '2022-08-12', '2022-08-13', '2022-08-14', '2022-08-15', '2022-08-16', '2022-08-17', '2022-08-18']
I hope it can help you!
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
datedays-2.2.8.tar.gz
(11.5 kB
view details)
Built Distribution
datedays-2.2.8-py3-none-any.whl
(10.3 kB
view details)
File details
Details for the file datedays-2.2.8.tar.gz
.
File metadata
- Download URL: datedays-2.2.8.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c81a0b20a92970cda81c6068363c7999fbe4719900000666a92f38318b516957 |
|
MD5 | f23b405d813e224e70426052e0a10912 |
|
BLAKE2b-256 | 2b35d52974a5e124854f407b1a72b1d7e764d79d9178b0e0fce47f34377924ce |
File details
Details for the file datedays-2.2.8-py3-none-any.whl
.
File metadata
- Download URL: datedays-2.2.8-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8f94dba9d2cc32912dfd47b2ee4331241bb4511c2ef872a39c935221d42927a |
|
MD5 | 6f53824250cf3fae4de135ca29ba974d |
|
BLAKE2b-256 | 459dd2b56781e5c59c6d5e1b3475405e48c3c475fadc54d12000567a5979dbe6 |