Gnome2::DateEdit(3)
π Gnome2::DateEdit π
okay so bestie, welcome to Gnome2::DateEdit β it's the Perl wrapper for GnomeDateEdit, and yes it's exactly as cute as it sounds. this is from the User Contributed Perl Documentation section, and we're gonna walk through the whole thing together, no skips, no cap. π
πΈ NAME πΈ
Gnome2::DateEdit β literally just a wrapper for GnomeDateEdit. that's the whole vibe. π
π¦ HIERARCHY π¦
here's the family tree, and yes it's giving royal lineage:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Box
+----Gtk2::HBox
+----Gnome2::DateEdit
she's a Gtk2::HBox at heart, she just has β¨main character energyβ¨ now. π
β¨ INTERFACES β¨
so she also does all of these, iconic multitasking:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::BuildableGtk2::Orientable
π METHODS π
π widget = Gnome2::DateEdit->new ($the_time, $show_time, $use_24_format)
make a fresh one, bestie. here's what you're handing her:
$the_timeβ a timestamp β°$show_timeβ boolean, so true/false vibes$use_24_formatβ boolean, are we doing 24-hour time or not
π widget = Gnome2::DateEdit->new_flags ($the_time, $flags)
same thing but you pass flags instead of booleans, lowkey more powerful:
$the_timeβ a timestamp β°$flagsβ aGnome2::DateEditFlags
π§ scalar = $gde->get_flags
grab the flags she's currently holding. that's it, that's the method.
π§ $gde->set_flags ($flags)
set new ones:
$flagsβ aGnome2::DateEditFlags
πΈ a timestamp = $gde->get_initial_time
get the initial time back out. it's giving "remember where we started". π«Ά
πΈ $gde->set_popup_range ($low_hour, $up_hour)
decide which hours show up in the little time popup selector:
$low_hourβ integer$up_hourβ integer
β a timestamp = $gde->get_time
the time she's got selected right now. β±οΈ
β $gde->set_time ($the_time)
set the time:
$the_timeβ a timestamp β°
π PROPERTIES π
these are the properties, and honestly the defaults are doing numbers:
'dateedit-flags'(Gnome2::DateEditFlags: defaultshow-time: readable / writable) β Flags for how DateEdit looks'initial-time'(Glib::ULong: default0: readable / writable) β The initial time'lower-hour'(integer: default7: readable / writable) β Lower hour in the time popup selector'time'(Glib::ULong: default0: readable / writable) β The time currently selected'upper-hour'(integer: default19: readable / writable) β Upper hour in the time popup selector
π SIGNALS π
she's talkative, we love that for her:
date-changed(Gnome2::DateEdit)time-changed(Gnome2::DateEdit)
π ENUMS AND FLAGS π
flags Gnome2::DateEditFlags
the flag roster, slay:
'show-time'/GNOME_DATE_EDIT_SHOW_TIME'24-hr'/GNOME_DATE_EDIT_24_HR'week-starts-on-monday'/GNOME_DATE_EDIT_WEEK_STARTS_ON_MONDAY'display-seconds'/GNOME_DATE_EDIT_DISPLAY_SECONDS
π₯ SEE ALSO π₯
go read these next, iykyk:
Gnome2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::ContainerGtk2::BoxGtk2::HBox
π COPYRIGHT π
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
and that's the whole page, bestie!! π«Ά no skips, every flag accounted for, periodt. β¨
perl v5.42.0 β 2025-07-25 β Gnome2::DateEdit(3) π ππ¦
π¦ where this page comes from
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms