Gtk2::Ex::FormFactory::Timestamp - Enter a valid timestamp


Gtk2-Ex-FormFactory documentation  | view source Contained in the Gtk2-Ex-FormFactory distribution.

Index


NAME

Top

Gtk2::Ex::FormFactory::Timestamp - Enter a valid timestamp

SYNOPSIS

Top

  Gtk2::Ex::FormFactory::Timestamp->new (
    format    => A format string describing the the time fields
    ...    
    Gtk2::Ex::FormFactory::Widget attributes
  );

DESCRIPTION

Top

This class implements a bunch of text entries to manage a valid timestamp (date and time down to minute level). The object value is a unix timestamp (in localtime).

OBJECT HIERARCHY

Top

  Gtk2::Ex::FormFactory::Intro

  Gtk2::Ex::FormFactory::Widget
  +--- Gtk2::Ex::FormFactory::Timestamp

  Gtk2::Ex::FormFactory::Layout
  Gtk2::Ex::FormFactory::Rules
  Gtk2::Ex::FormFactory::Context
  Gtk2::Ex::FormFactory::Proxy

ATTRIBUTES

Top

Attributes are handled through the common get_ATTR(), set_ATTR() style accessors, but they are mostly passed once to the object constructor and must not be altered after the associated FormFactory was built.

format = SCALAR [optional]

This is a format string to define which timestamp fields should be edited and how they should be displayed.

Format wildcards are defined as follows:

  %Y	Year, four digits
  %m	Month, two digits
  %d	Day of month, two digits
  %k	Hour of the day, two digits
  %M	Minutes, two digits

Everything else in the format string will be rendered as labels between the time field text entries.

The format string defaults to

  %d.%m.%Y %k:%M

All time fields which are not part of the format string will get a default value of 0.

For more attributes refer to Gtk2::Ex::FormFactory::Widget.

AUTHORS

Top

 Jörn Reder <joern at zyn dot de>

COPYRIGHT AND LICENSE

Top


Gtk2-Ex-FormFactory documentation  | view source Contained in the Gtk2-Ex-FormFactory distribution.