Skip to main content

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

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)

Project details


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.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

clocksays-0.1.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page