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 hashes)
Built Distribution
Close
Hashes for clocksays-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d75fec6348ac717be440b8dec5d40ce65026b329c1fa365519ad7142665d1bb |
|
MD5 | e65f094de58374fc943c2967c5502590 |
|
BLAKE2b-256 | a164fce4e47a3f3cfb8ffa860c16b3ac18796c597986408adcffd19dc13c57ce |