GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Prima::Widget::Time(3) User Contributed Perl Documentation Prima::Widget::Time(3)

Prima::Widget::Time - time inputline

        use Prima qw(Application Widget::Time);
        my $mw = Prima::MainWindow->new;
        $mw->insert( 'Widget::Time' =>
                pack => { fill => 'x', pad => 20 },
        );
        run Prima;

Standard time inputline

Converts TIME to string representation according to the current "format" string
Returns a string to be used in "format", where the string is constructed in such a way to reflect regional time formatting preferences.

See also: "man 3 strftime, %X" .

Tries to extract time from STRING assuming it is constructed according to the current "format" string. Doesn't fail but values that could not be extracted are assigned to current second/minute/hour instead.
Checks whether S, M, H values are valid and within understood range; adjusts the values if not. Returns the final values.

The format string is used when converting time to its visual interpretation, also with regional preferences, like hh:mm:ss or hh:mm:AA . The syntax of the format is exctly this, it recognizes fixed patterns hh, mm, ss, aa, and AA, replacing them with the time values.

("aa" is for <am / pm>, "AA" is for <AM / PM>).

Selects the hour.
Selects the minute.
Selects the second
Accepts three integers / arrayref with three integers in format of "localtime". SEC and MIN can be from 0 to 59, HOUR from 0 to 23.

Default value: today's time.

Dmitry Karasik, <dmitry@karasik.eu.org>.

Prima::InputLine

2025-07-04 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.