public function setTimeStamp($value)
{
if ($value === null || is_string($value) && trim($value) === '') {
$this->setText('');
} else {
$date = TPropertyValue::ensureFloat($value);
$formatter = new TSimpleDateFormatter($this->getDateFormat());
$this->setText($formatter->format($date));
}
}