3 declare(strict_types=1);
    21     $f = $DIC[
'ui.factory'];
    22     $r = $DIC[
'ui.renderer'];
    23     $df = new \ILIAS\Data\Factory();
    26         'd1' => 
$f->table()->column()->timeSpan(
"German Long", $df->dateFormat()->germanLong()),
    27         'd2' => 
$f->table()->column()->timeSpan(
"German Short", $df->dateFormat()->germanShort())
    30     $data_retrieval = 
new class () implements 
I\DataRetrieval {
    31         public function getRows(
    32             I\DataRowBuilder $row_builder,
    33             array $visible_column_ids,
    37             ?array $additional_parameters
    40             $dat = new \DateTimeImmutable();
    43                 'd1' => [$dat, $dat2],
    44                 'd2' => [$dat, $dat2],
    46             yield $row_builder->buildDataRow($row_id, $record);
    49         public function getTotalRowCount(
    51             ?array $additional_parameters
    57     $table = 
$f->table()->data(
'TimeSpan Columns', $columns, $data_retrieval)
    58         ->withRequest($DIC->http()->request());
    59     return $r->render($table);
 
Both the subject and the direction need to be specified when expressing an order. ...
 
base()
 expected output: > ILIAS shows the rendered Component. 
 
A simple class to express a naive range of whole positive numbers.