private function sayDateLiteral(RdfWriter $writer, TimeValue $value) { $dateValue = $this->dateCleaner->getStandardValue($value); if (!is_null($dateValue)) { // XXX: type should perhaps depend on precision. $writer->value($dateValue, 'xsd', 'dateTime'); } else { $writer->value($value->getTime()); } }