Skip to main content

clock()

Descriptionx#

Clears the screen and draws a clock with the given hour and minute set by the user.

Syntax#

clock(hour, minute)
clock(hour, minute, string='', font_size=18)

Parameters#

hour: Integer for the hour
minute: Integer for the minute
string: an 8 character String to be displayed under the clock (optional). Defaults to an empty string.
font_size: the font-size of the time

Returns#

None

Example Code#
Python#
#Python code
from zumi.util.screen import Screen
import time
screen=Screen()
screen.clock(3,15,"Monday")