Skip to content

API documentation

Clock

Clock

Clock(language: str)

convert

convert(time: TimeType) -> str

Transform time to spoken expressions

Parameters:

Name Type Description Default
time TimeType

string, time or datetime object

required

Returns:

Name Type Description
str str

spoken expressions

inputs

inputs(_: TimeType) -> time

Input Parser

Accepts string, time or datetime and return time object

Parameters:

Name Type Description Default
_ TimeType

string, time or datetime object

required

Raises:

Type Description
NotImplementedError

shell for dispatching

Returns:

Name Type Description
time time

python time object