public function toNIS()
    {
        if ($this->getAttribute("timeStamp")) {
            // from NIS timestamp
            $ts = $this->getAttribute("timeStamp");
            if (! empty($ts))
                return $ts;

            return $this->diff("now", static::$nemesis);
        }
        else {
            // from UTC timestamp
            $utc = $this->getAttribute("utc");
            return $this->diff($utc, static::$nemesis);
        }
    }
public function toNIS()
    {
        if ($this->getAttribute("timeStamp")) {
            // from NIS timestamp
            $ts = $this->getAttribute("timeStamp");
            if (! empty($ts))
                return $ts;

            return $this->diff("now", static::$nemesis);
        }
        else {
            // from UTC timestamp
            $utc = $this->getAttribute("utc");
            return $this->diff($utc, static::$nemesis);
        }
    }
public function toNIS ( ) { if ( $ this -> getAttribute ( "timeStamp" ) ) { // from NIS timestamp $ ts = $ this -> getAttribute ( "timeStamp" ) ; if ( ! empty ( $ ts ) ) return $ ts ; return $ this -> diff ( "now" , static :: $ nemesis ) ; } else { // from UTC timestamp $ utc = $ this -> getAttribute ( "utc" ) ; return $ this -> diff ( $ utc , static :: $ nemesis ) ; } }
Returns timestamp since NEM Nemesis block.

The calculated NEM Time is equal to the *Count of Seconds*
between the `timeStamp` attribute and the NEM Genesis Block
Time.

@return int      The NEM NIS compliant timestamp.
Returns timestamp since NEM Nemesis block .