src/Rocketeer/Services/Connections/Shell/Modules/Core.php
public function getTimestamp()
    {
        $timestamp = $this->runLast('date +"%Y%m%d%H%M%S"');
        $timestamp = trim($timestamp);
        $timestamp = preg_match('/^[0-9]{14}$/', $timestamp) ? $timestamp : date('YmdHis');

        return $timestamp;
    }
public function getTimestamp()
    {
        $timestamp = $this->runLast('date +"%Y%m%d%H%M%S"');
        $timestamp = trim($timestamp);
        $timestamp = preg_match('/^[0-9]{14}$/', $timestamp) ? $timestamp : date('YmdHis');

        return $timestamp;
    }
public function getTimestamp ( ) { $ timestamp = $ this -> runLast ( 'date +"%Y%m%d%H%M%S"' ) ; $ timestamp = trim ( $ timestamp ) ; $ timestamp = preg_match ( '/^[0-9]{14}$/' , $ timestamp ) ? $ timestamp : date ( 'YmdHis' ) ; return $ timestamp ; }
Get the current timestamp on the server.

@return string
Get the current timestamp on the server .