Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

DateTime.php

Zuletzt modifiziert: 09.10.2024, 12:55 - Dateigröße: 1.31 KiB


01  <?php
02  /**
03   * Zend Framework (http://framework.zend.com/)
04   *
05   * @link      http://github.com/zendframework/zf2 for the canonical source repository
06   * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
07   * @license   http://framework.zend.com/license/new-bsd New BSD License
08   */
09   
10  namespace Zend\Stdlib;
11   
12  use DateTimeZone;
13   
14  trigger_error('DateTime extension deprecated as of ZF 2.1.4; use the \DateTime constructor to parse extended ISO8601 dates instead', E_USER_DEPRECATED);
15   
16  /**
17   * DateTime
18   *
19   * An extension of the \DateTime object.
20   *
21   * @deprecated
22   */
23  class DateTime extends \DateTime
24  {
25      /**
26       * The DateTime::ISO8601 constant used by php's native DateTime object does
27       * not allow for fractions of a second. This function better handles ISO8601
28       * formatted date strings.
29       *
30       * @param  string       $time
31       * @param  DateTimeZone $timezone
32       * @return mixed
33       */
34      public static function createFromISO8601($time, DateTimeZone $timezone = null)
35      {
36          $format = self::ISO8601;
37          if (isset($time[19]) && $time[19] === '.') {
38              $format = 'Y-m-d\TH:i:s.uO';
39          }
40   
41          if ($timezone !== null) {
42              return self::createFromFormat($format, $time, $timezone);
43          }
44   
45          return self::createFromFormat($format, $time);
46      }
47  }
48