58 if (
count($value) === 1) {
79 if (!is_null($parts[
'hour'])) {
80 $timeStr .= $parts[
'hour'];
82 if (!is_null($parts[
'minute'])) {
92 if (!is_null($parts[
'minute'])) {
93 $timeStr .= $parts[
'minute'];
95 if (!is_null($parts[
'second'])) {
99 if (isset($parts[
'second'])) {
106 if (!is_null($parts[
'second'])) {
107 $timeStr .= $parts[
'second'];
111 if (!is_null($parts[
'timezone'])) {
112 if ($parts[
'timezone'] ===
'Z') {
116 preg_replace(
'/([0-9]{2})([0-9]{2})$/',
'$1:$2', $parts[
'timezone']);
136 return str_replace(
':',
'', $value);
140 parent::setXmlValue($value);
setValue($value)
Updates the current value.
static parseVCardTime($date)
This method parses a vCard TIME value.
setXmlValue(array $value)
Hydrate data from a XML subtree, as it would appear in a xCard or xCal object.
setJsonValue(array $value)
Sets the JSON value, as it would appear in a jCard or jCal object.
getValueType()
Returns the type of value.
getJsonValue()
Returns the value, in the format it should be encoded for json.
count()
Returns the number of elements.
getValue()
Returns the current value.