Class Hierarchy
Fl_Widget
|
+----Fl_Clock_Output
|
+----Fl_Clock
Include Files
#include <FL/Fl_Clock.H>
Description
This widget can be used to display a program-supplied time.
The time shown on the clock is not updated.
To display the current time, use Fl_Clock
instead.
Methods
Creates a new Fl_Clock_Output widget using the given position, size,
and label string. The default boxtype is FL_NO_BOX.
The destructor removes the clock.
Returns the current hour (0 to 23).
Returns the current minute (0 to 59).
Returns the current second (0 to 60, 60 = leap second).
The first two forms of value set the displayed time to the
given UNIX time value or specific hours, minutes, and seconds.
The third form of value returns the displayed time in
seconds since the UNIX epoch (January 1, 1970).