ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilDate.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
27 class 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 }
static _getInstance(string $a_tz='')
get instance by timezone
__toString()
To string for dates.
get(string $class_name)
const IL_CAL_DATE
__construct($a_date='', $a_format=0)
__construct(Container $dic, ilPlugin $plugin)