Gtk2::Ex::TimeEntryWidget for entering times | |
Download |
Gtk2::Ex::TimeEntry Ranking & Summary
Advertisement
- License:
- GPL v3
- Price:
- FREE
- Publisher Name:
- Jeffrey Ray Hallock
- Publisher web site:
- http://search.cpan.org/~jhallock/
Gtk2::Ex::TimeEntry Tags
Gtk2::Ex::TimeEntry Description
Widget for entering times Gtk2::Ex::TimeEntry is a Perl module that displays and edits a time in HH::MM PM format with some convienence functions.Use the up and down keys to modify the invidual components of the value, and the left and right keys to navigate between them. Pressing up or down while the entire contents of the entry is selected (such as when you focus-in) modifies the value in 15 minute increments.The time is stored in HH:MM:SS format (but displayed in HH:MM PM format). If you entry a value 24:00:00 or higher, it will loop back around.You can also type a time into the entry in various formats, which will be parsed and then displayed in the entry in HH:MM PM format. Here are some examples of things you can enter into the widget and the resulting internal and display values. INPUT VALUE DISPLAY 1 01:00:00 01:00 AM 10 10:00:00 10:00 AM 420 04:20:00 04:20 AM 4:20 04:20:00 04:20 AM 420pm 16:20:00 04:20 PM 04:20 PM 16:20:00 04:20 PM 30:20:00 04:20:00 04:20 AMSYNOPSIS use Gtk2::Ex::TimeEntry; $te = Gtk2::Ex::TimeEntry->new (value => '13:00:00'); $te->set_value('1pm'); $te->get_value; Requirements: · Perl
Gtk2::Ex::TimeEntry Related Software