First page Back Continue Last page Overview Graphics

Clock Class Used in Python

>>> import Clock

>>> x = Clock.Clock(11,8,23)

>>> x.getMinutes()

8

>>> x.getHours()

11

>>>

What about having a method, which returns the time in hours, minutes and seconds?

i.e.

>>> x.getTime()

11, 8, 23