Prima::...et::Date(3)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

🌸 NAME 🌸

okay so welcome to the Prima::...et::Date(3) manual page β€” User Contributed Perl Documentation, iykyk β€” and this is the whole vibe:

  • Prima::Widget::Date β€” standard date picker widget

✨ SYNOPSIS ✨

bestie, here's the starter pack:

use Prima qw(Application Widget::Date);

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

run Prima;

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so Prima::Widget::Date is the standard date picker widget, and it's derived from the Prima::InputLine class. that's the whole description and it ate. 🫢

πŸ‘‘ API πŸ‘‘

πŸ’… Methods πŸ’…

  • date2str DATE β€” converts the DATE to a string representation according to the current format string. periodt.
  • default_format β€” returns a string to be used in format where the string is constructed to reflect the formatting of the regional date preferences. See also: man 3 strftime, %x.
  • str2date STRING β€” tries to extract the date from the STRING, assuming it is constructed according to the current format string. it doesn't fail, but values that could not be extracted are assigned to today's day/month/year instead. no cap.
  • today β€” returns today's date in widgets [D,M,Y] format. slay.
  • validate_date D, M, Y β€” checks if D, M, Y form a valid date, and adjusts the values if not. returns the corrected values. πŸ’…

πŸŽ€ Properties πŸŽ€

  • date DAY, MONTH, YEAR | [ DAY, MONTH, YEAR ] β€” accepts three integers / arrayref with three integers in the format of localtime. DAY can be from 1 to 31, MONTH from 0 to 11, YEAR from 0 to 199. default value: today's date. πŸ‘‘
  • day INTEGER β€” selects the day of the month.
  • format STRING β€” the format string is used when converting the date to its visual interpretation, also with regional preferences, f ex YYYY-MM-DD or DD/MM/YY. the syntax of the format is verbatim as this, i e it recognizes fixed patterns YYYY, YY, MM, and DD, replacing them with the date values. iconic.
  • month β€” selects the month.
  • year β€” selects the year.

πŸ’œ AUTHOR πŸ’œ

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

🌈 SEE ALSO 🌈

Prima::ComboBox, Prima::Calendar β€” go read those too, bestie.


that's the whole manual, bestie β€” perl v5.42.0, dated 2024-08-20, manual name Prima::...et::Date(3). bye πŸ’…

πŸ“¦ where this page comes from