public function toHash(SPIValue $value)
{
if ($this->isEmptyValue($value)) {
return null;
}
if ($value->value instanceof DateTime) {
return ['timestamp' => $value->value->getTimestamp(), 'rfc850' => $value->value->format(DateTime::RFC850)];
}
return ['timestamp' => 0, 'rfc850' => null];
}