value = $timestamp; if (!$timestamp) $this->value = time(); } function __toString() { $value = date('c', $this->value); return "{$value}"; } }