Skip to main content

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)

Release files for clocksays 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clocksays 0.2.1
File Size Uploaded
clocksays-0.2.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clocksays 0.2.1
File Interpreter ABI Platform
clocksays-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / clocksays-0.2.1.tar.gz

Download URL clocksays-0.2.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ee6b5509f61d2088c84c6e9146534504544fb5109b5880cb5a0849460dec8cba
BLAKE2b-256 checksum
How to use checksums
a1fef176f8c0986dcfb9a7c33b3088522acc744fadf357c0f8bea7164241490f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / clocksays-0.2.1-py3-none-any.whl

Download URL clocksays-0.2.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d75fec6348ac717be440b8dec5d40ce65026b329c1fa365519ad7142665d1bb
BLAKE2b-256 checksum
How to use checksums
a164fce4e47a3f3cfb8ffa860c16b3ac18796c597986408adcffd19dc13c57ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page