Class: Wx::GRID::GridCellDateTimeRenderer

Inherits:
GridCellDateRenderer show all
Defined in:
lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb

Overview

This class may be used to format a date/time data in a cell.

The class DateTime is used internally to display the local date/time or to parse the string date entered in the cell thanks to the defined format.

Category: Grid Related Classes

Instance Method Summary collapse

Methods inherited from GridCellDateRenderer

#set_parameters

Methods inherited from GridCellRenderer

#clone, #draw, #get_best_height, #get_best_size, #get_best_width, #get_max_best_size

Constructor Details

#initialize(outformat = Wx::DEFAULT_DATE_TIME_FORMAT, informat = Wx::DEFAULT_DATE_TIME_FORMAT) ⇒ Wx::GRID::GridCellDateTimeRenderer

Date/time renderer constructor.

Parameters:

  • outformat (String) (defaults to: Wx::DEFAULT_DATE_TIME_FORMAT)

    strptime()-like format string used the parse the output date/time.

  • informat (String) (defaults to: Wx::DEFAULT_DATE_TIME_FORMAT)

    strptime()-like format string used to parse the string entered in the cell.



33
# File 'lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb', line 33

def initialize(outformat=Wx::DEFAULT_DATE_TIME_FORMAT, informat=Wx::DEFAULT_DATE_TIME_FORMAT) end