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.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for clocksays-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | def9ffc6fb6e43bc2f8b542df019fe037b021bc25ba91465de6a611b1165bb34 |
|
MD5 | f3abc3ff6c38e2f08318eaf2c96d985d |
|
BLAKE2b-256 | bce80a666c16482541b315d4ea441ee3e40b625275b2f9f17ab8b1dca15ccbdd |