Prima::Calendar - standard calendar widget |
Prima::Calendar - standard calendar widget
use Prima::Calendar; my $cal = Prima::Calendar-> create( useLocale => 1, onChange => sub { print $_[0]-> date_as_string, "\n"; }, ); $cal-> date_from_time( localtime ); $cal-> month( 5);
Provides interactive selection of date between 1900 and 2099 years. The main property, date, is a three-integer array, day, month, and year, in the format of perl localtime ( see localtime in the perlfunc manpage ) - day can be in range from 1 to 31,month from 0 to 11, year from 0 to 199.
localtime
.
DAY can be from 1 to 31, MONTH from 0 to 11, YEAR from 0 to 199.
Default value: today's date.
Default value: 0
POSIX::strftime
. If invocation of POSIX module
fails, the property is automatically assigned to 0.
If 0, the English names of months and days of week are used.
Default value: 1
See also: date_as_string
strftime
.
firstDayOfWeek
property is taken into the account,
so 0 is a Sunday shifted forward by firstDayOfWeek
days.
The switch from Julian to Gregorian calendar is ignored.
localtime
or gmtime
result. This helper method
allows the following syntax:
$calendar-> date_from_time( localtime( time));
Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima, the Prima::Widget manpage, the POSIX manpage, localtime in the perlfunc manpage, time in the perlfunc manpage, examples/calendar.pl.
Prima::Calendar - standard calendar widget |