ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDate.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
27class ilDate extends ilDateTime
28{
29 public function __construct($a_date = '', $a_format = 0)
30 {
31 parent::__construct($a_date, $a_format, ilTimeZone::UTC);
32
33 $this->default_timezone = ilTimeZone::_getInstance('UTC');
34 }
35
36 public function get(int $a_format, string $a_format_str = '', string $a_tz = '')
37 {
38 return parent::get($a_format, $a_format_str);
39 }
40
44 public function __toString(): string
45 {
46 return $this->get(IL_CAL_DATE) . '<br />';
47 }
48}
const IL_CAL_DATE
@classDescription Date and time handling
Class for single dates.
__construct($a_date='', $a_format=0)
__toString()
To string for dates.
static _getInstance(string $a_tz='')
get instance by timezone
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
get(string $class_name)