getContext(), $var); } catch (Error $e) { // Only happens if someone makes a DateTimeInterface with a private __clone return $v; } $dtv->setChildren($v->getChildren()); $dtv->flags = $v->flags; $dtv->appendRepresentations($v->getRepresentations()); return $dtv; } }