FLTK::ClockOutput - Base class of FLTK::Clock
Base class of
this one does not move,
it just displays whatever time you set into it.
type() may be set to
$clockoutput->value( $time );
Set the clock to a Unix timestamp.
The value is passed through the
localtime() function and used to get the hour,
$clockoutput->value( $hour, $minute, $second );
Set the hour, minute, and second to display. The hour is effectively taken modulus 12 and the minute and second modulus 60 to figure out where to place the hands. Redraw happens only if different.
Note that this does not set the
value(); ...without the date,
it really can't.
my $time = $clockoutput->value( );
Return the last Unix timestamp the clock was set to.
Sanko Robinson <email@example.com> - http://sankorobinson.com/
Copyright (C) 2008-2010 by Sanko Robinson <firstname.lastname@example.org>
This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.
When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.