/** * Calculation of hora. * * @param type $type Hora type * @return \Jyotish\Base\Data */ public function calcHora($type = Hora::TYPE_KALA) { $Hora = new Hora($this); $this->data[self::BLOCK_KALA]['hora'] = $Hora->getHora($type); return $this; }
/** * Calculation of hora. * * @param type $type Hora type * @return Data * @throws Exception\UnderflowException */ public function calcHora($type = Hora::TYPE_KALA) { if (is_null($this->DateTime)) { throw new Exception\UnderflowException("DateTime is not setted."); } $Hora = new Hora($this); $this->data[self::BLOCK_KALA]['hora'] = $Hora->getHora($type); return $this; }