Add your description here
Project description
clocksays
This small projects converts a given time (datetime.datetime) in a string of natural language. Languages supported so far:
- German
- English
- French
Feel free to add other languages and issue pull request.
Usage
import clocksays.saytime as st
import datetime as dt
t_str = st.clocksays(t = dt.datetime.now(), language='de', prefix='Es ist ', suffix='.')
print(t_str)
t_str = st.clocksays(t = dt.datetime.now(), language='en', prefix='It is ', suffix='.')
print(t_str)
t_str = st.clocksays(t = dt.datetime.now(), language='fr', prefix='Il est ', suffix='.')
print(t_str)
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
clocksays-0.2.1.tar.gz
(3.6 kB
view details)
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 clocksays-0.2.1.tar.gz.
File metadata
- Download URL: clocksays-0.2.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6b5509f61d2088c84c6e9146534504544fb5109b5880cb5a0849460dec8cba
|
|
| MD5 |
65824e4aff744abcd89c3fc55363656d
|
|
| BLAKE2b-256 |
a1fef176f8c0986dcfb9a7c33b3088522acc744fadf357c0f8bea7164241490f
|
File details
Details for the file clocksays-0.2.1-py3-none-any.whl.
File metadata
- Download URL: clocksays-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d75fec6348ac717be440b8dec5d40ce65026b329c1fa365519ad7142665d1bb
|
|
| MD5 |
e65f094de58374fc943c2967c5502590
|
|
| BLAKE2b-256 |
a164fce4e47a3f3cfb8ffa860c16b3ac18796c597986408adcffd19dc13c57ce
|