Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Datetime/DateTimePlus.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
21 * As with the DateTime class, a date object may be created even if it has | 21 * As with the DateTime class, a date object may be created even if it has |
22 * errors. It has an errors array attached to it that explains what the | 22 * errors. It has an errors array attached to it that explains what the |
23 * errors are. This is less disruptive than allowing datetime exceptions | 23 * errors are. This is less disruptive than allowing datetime exceptions |
24 * to abort processing. The calling script can decide what to do about | 24 * to abort processing. The calling script can decide what to do about |
25 * errors using hasErrors() and getErrors(). | 25 * errors using hasErrors() and getErrors(). |
26 * | |
27 * @method $this add(\DateInterval $interval) | |
28 * @method static array getLastErrors() | |
29 * @method $this modify(string $modify) | |
30 * @method $this setDate(int $year, int $month, int $day) | |
31 * @method $this setISODate(int $year, int $week, int $day = 1) | |
32 * @method $this setTime(int $hour, int $minute, int $second = 0, int $microseconds = 0) | |
33 * @method $this setTimestamp(int $unixtimestamp) | |
34 * @method $this setTimezone(\DateTimeZone $timezone) | |
35 * @method $this sub(\DateInterval $interval) | |
36 * @method int getOffset() | |
37 * @method int getTimestamp() | |
38 * @method \DateTimeZone getTimezone() | |
26 */ | 39 */ |
27 class DateTimePlus { | 40 class DateTimePlus { |
28 | 41 |
29 use ToStringTrait; | 42 use ToStringTrait; |
30 | 43 |
51 'second', | 64 'second', |
52 ]; | 65 ]; |
53 | 66 |
54 /** | 67 /** |
55 * The value of the time value passed to the constructor. | 68 * The value of the time value passed to the constructor. |
69 * | |
70 * @var string | |
56 */ | 71 */ |
57 protected $inputTimeRaw = ''; | 72 protected $inputTimeRaw = ''; |
58 | 73 |
59 /** | 74 /** |
60 * The prepared time, without timezone, for this date. | 75 * The prepared time, without timezone, for this date. |
76 * | |
77 * @var string | |
61 */ | 78 */ |
62 protected $inputTimeAdjusted = ''; | 79 protected $inputTimeAdjusted = ''; |
63 | 80 |
64 /** | 81 /** |
65 * The value of the timezone passed to the constructor. | 82 * The value of the timezone passed to the constructor. |
83 * | |
84 * @var string | |
66 */ | 85 */ |
67 protected $inputTimeZoneRaw = ''; | 86 protected $inputTimeZoneRaw = ''; |
68 | 87 |
69 /** | 88 /** |
70 * The prepared timezone object used to construct this date. | 89 * The prepared timezone object used to construct this date. |
90 * | |
91 * @var string | |
71 */ | 92 */ |
72 protected $inputTimeZoneAdjusted = ''; | 93 protected $inputTimeZoneAdjusted = ''; |
73 | 94 |
74 /** | 95 /** |
75 * The value of the format passed to the constructor. | 96 * The value of the format passed to the constructor. |
97 * | |
98 * @var string | |
76 */ | 99 */ |
77 protected $inputFormatRaw = ''; | 100 protected $inputFormatRaw = ''; |
78 | 101 |
79 /** | 102 /** |
80 * The prepared format, if provided. | 103 * The prepared format, if provided. |
104 * | |
105 * @var string | |
81 */ | 106 */ |
82 protected $inputFormatAdjusted = ''; | 107 protected $inputFormatAdjusted = ''; |
83 | 108 |
84 /** | 109 /** |
85 * The value of the language code passed to the constructor. | 110 * The value of the language code passed to the constructor. |