public function setValue($epoch)
 {
     $result = parent::setValue($epoch);
     if ($epoch === null) {
         return $result;
     }
     $readable = $this->formatTime($epoch, 'Y!m!d!g:i A');
     $readable = explode('!', $readable, 4);
     $this->valueYear = $readable[0];
     $this->valueMonth = $readable[1];
     $this->valueDay = $readable[2];
     $this->valueTime = $readable[3];
     return $result;
 }
 public function setValue($epoch)
 {
     if ($epoch instanceof AphrontFormDateControlValue) {
         $this->continueOnInvalidDate = true;
         $this->valueDate = $epoch->getValueDate();
         $this->valueTime = $epoch->getValueTime();
         $this->allowNull = $epoch->getOptional();
         $this->isDisabled = $epoch->isDisabled();
         return parent::setValue($epoch->getEpoch());
     }
     $result = parent::setValue($epoch);
     if ($epoch === null) {
         return $result;
     }
     $readable = $this->formatTime($epoch, 'Y!m!d!' . $this->getTimeFormat());
     $readable = explode('!', $readable, 4);
     $year = $readable[0];
     $month = $readable[1];
     $day = $readable[2];
     $this->valueDate = $month . '/' . $day . '/' . $year;
     $this->valueTime = $readable[3];
     return $result;
 }