Gnome2::DateEdit(3)

πŸ“¦
version 1.048 Β· 2 versions
, in fedora 43

πŸ’– 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::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::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 β€” a Gnome2::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 β€” a Gnome2::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 : default show-time : readable / writable) β€” Flags for how DateEdit looks
  • 'initial-time' (Glib::ULong : default 0 : readable / writable) β€” The initial time
  • 'lower-hour' (integer : default 7 : readable / writable) β€” Lower hour in the time popup selector
  • 'time' (Glib::ULong : default 0 : readable / writable) β€” The time currently selected
  • 'upper-hour' (integer : default 19 : 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:

  • Gnome2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::Container
  • Gtk2::Box
  • Gtk2::HBox

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